Skip to content

Commit

Permalink
Merge 194c27f into dd4e93c
Browse files Browse the repository at this point in the history
  • Loading branch information
zshi-redhat committed Aug 30, 2018
2 parents dd4e93c + 194c27f commit ac8db2b
Show file tree
Hide file tree
Showing 14 changed files with 167 additions and 99 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ env:

before_install:
- sudo apt-get update -qq
- go get github.com/mattn/goveralls

install:
# workaround golint install error in https://github.com/golang/lint/issues/288
- mkdir -p $GOPATH/src/golang.org/x
- pushd $GOPATH/src/golang.org/x
- git clone https://github.com/golang/tools.git
- git clone https://github.com/golang/lint.git
- go get github.com/golang/lint/golint
- popd
Expand All @@ -29,9 +29,10 @@ before_script:
script:
- ./build
- sudo ./test.sh
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci
- mkdir -p ${TRAVIS_BUILD_DIR}/dist
- tar cvfz ${TRAVIS_BUILD_DIR}/dist/multus-cni_amd64.tar.gz --warning=no-file-changed --exclude="dist" --exclude="vendor" .
- docker build -t nfvpe/multus -f ./images/Dockerfile .
- docker build -t nfvpe/multus .

before_deploy:
- go get -u github.com/laher/goxc
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
![multus-cni Logo](https://github.com/intel/multus-cni/blob/master/doc/images/Multus.png)

[![Travis CI](https://travis-ci.org/intel/multus-cni.svg?branch=master)](https://travis-ci.org/intel/multus-cni/builds)[![Go Report Card](https://goreportcard.com/badge/github.com/intel/multus-cni)](https://goreportcard.com/report/github.com/intel/multus-cni)

* [MULTUS CNI plugin](#multus-cni-plugin)
* [Quickstart Guide](#quickstart-guide)
* [Multi-Homed pod](#multi-homed-pod)
Expand Down
20 changes: 14 additions & 6 deletions examples/npwg-demo-1/01_crd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@ apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: networks.kubernetes.cni.cncf.io
name: network-attachment-definitions.k8s.cni.cncf.io
spec:
# group name to use for REST API: /apis/<group>/<version>
group: kubernetes.cni.cncf.io
group: k8s.cni.cncf.io
# version name to use for REST API: /apis/<group>/<version>
version: v1
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: networks
plural: network-attachment-definitions
# singular name to be used as an alias on the CLI and for display
singular: network
singular: network-attachment-definition
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: Network
kind: NetworkAttachmentDefinition
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- net
- net-attach-def
validation:
openAPIV3Schema:
properties:
spec:
properties:
config:
type: string

2 changes: 1 addition & 1 deletion examples/npwg-demo-1/02_clusterrole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: multus-crd-overpowered
name: multus
rules:
- apiGroups:
- '*'
Expand Down
6 changes: 4 additions & 2 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package: github.com/intel/multus-cni
ignore:
- bytes
import:
- package: github.com/containernetworking/cni
version: 07c1a6da47b7fbf8b357f4949ecce2113e598491
subpackages:
- pkg/ip
- pkg/ipam
- pkg/skel
- pkg/types
- pkg/version
- package: github.com/containernetworking/plugins
version: 2b8b1ac0af4568e928d96ccc5f47b075416eeabd
subpackages:
- pkg/ip
- pkg/ipam
- pkg/ns
- package: github.com/onsi/ginkgo
version: 7f8ab55aaf3b86885aa55b762e803744d1674700
Expand Down
3 changes: 2 additions & 1 deletion images/70-multus.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "flannel",
"name": "flannel.1",
"delegate": {
"isDefaultGateway": true
"isDefaultGateway": true,
"hairpinMode": true
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This is used for distribution of Multus in a Docker image.

Typically you'd build this from the root of your Multus clone, and you'd set the `-f` flag to specify the Dockerfile during build time. This allows the addition of the entirety of the Multus git clone as part of the Docker context. Use the `-f` flag with the root of the clone as the context (e.g. your current work directory would be root of git clone), such as:
Typically you'd build this from the root of your Multus clone, as such:

```
$ docker build -t dougbtv/multus -f ./images/Dockerfile .
$ docker build -t dougbtv/multus .
```

---
Expand Down

0 comments on commit ac8db2b

Please sign in to comment.