rkamudhan
7372922617
adding conflist support
2018-07-27 23:43:17 +01:00
Dan Williams
42e6894962
k8sclient: use InClusterConfig() for kubeclient when run as daemonset
...
When multus is run inside a container, eg as a daemonset, we can use
InClusterConfig() to automatically get the service account token, the
CA certificate, and the apiserver address, all without a kubeconfig
file.
2018-07-27 12:08:24 +01:00
Doug Smith
926910af08
[docker-image] Adds a Docker image for distribution of Multus binary in a Docker image ( #100 )
2018-07-27 19:51:51 +09:00
dougbtv
2f96fa302a
[docs] Updates kubernetes.v1 to k8s.v1 in the sample files
2018-07-25 01:44:14 +01:00
Dan Williams
a4567df76a
Update kubernetes.cni.cncf.io -> k8s.cni.cncf.io
2018-07-24 14:02:48 +01:00
Dan Williams
6e440b4fa8
k8sclient: update for removal of Plugin field from NetworkAttachmentDefinition
...
Plugin went away, replaced by a minimal Spec.Config field so that the CNI
version the thick plugin supports could be indicated. This means we need
to also inject the network name into the minimal CNI JSON config when
loading the Spec.Config if the network name isn't there already.
2018-07-24 14:02:48 +01:00
Dan Williams
4f8c285520
k8sclient: Network -> NetworkAttachmentDefinition
...
To align with latest spec change clarifying the name of the CRD object.
2018-07-24 14:02:48 +01:00
Doug Smith
c8fbcf3358
Merge pull request #90 from intel/dev/logging
...
Add logging feature for debug
2018-07-20 17:26:57 -04:00
dougbtv
9f7c91e56d
[docs] Adds documentation for logging enhancements in #90
2018-07-20 16:06:50 +01:00
Kuralamudhan Ramakrishnan
61959e0477
Update README.md
2018-07-17 10:18:46 +01:00
Kuralamudhan Ramakrishnan
3e1c6ac9bd
Update README.md
2018-07-17 10:18:17 +01:00
Tomofumi Hayashi
371b27b16a
Incorporate rkamudhan's comment.
2018-07-13 15:10:53 +09:00
Kuralamudhan Ramakrishnan
ea79e126f9
Update README.md
2018-07-12 18:39:39 +01:00
Tomofumi Hayashi
6e33bf9921
Add logging feature for debug
...
This diff adds logging feature for debug.
2018-07-06 14:50:48 +09:00
Dan Williams
589877b644
multus: unit test multi-network interface names ( #82 )
2018-06-26 10:13:26 +09:00
Dan Williams
e047460384
travis: add unit tests to travis CI
2018-06-20 18:20:57 +01:00
Dan Williams
0b1e8689dc
k8sclient: use Go struct to parse annotations and add unit tests
2018-06-20 18:20:57 +01:00
Dan Williams
591a687b42
k8sclient: remove 'masterplugin'/primary
...
This is handled now by multus.go instead.
2018-06-20 18:20:57 +01:00
Dan Williams
fddbbdeae8
multus: add unit tests
2018-06-20 18:20:57 +01:00
Dan Williams
88c3b366f6
testing: add fake kube client testing helpers
2018-06-20 18:20:57 +01:00
Dan Williams
fa9f209fed
k8sclient: default network resource namespace to pod's namespace
...
Instead of 'default'.
2018-06-20 18:20:57 +01:00
Dan Williams
ac9e46f712
multus/k8s: allow faking k8s client for unit tests
2018-06-20 18:20:57 +01:00
Dan Williams
f4f6a6cbed
multus: rework cmdAdd/Del/Get calling to support testcases
2018-06-20 18:20:57 +01:00
Dan Williams
afa87024eb
multus: pass exec interface to invoke package
...
Will help with unit tests.
2018-06-20 18:20:57 +01:00
Dan Williams
4a8b422c84
types: add unit tests
2018-06-20 18:20:57 +01:00
Dan Williams
5820658a5e
vendor: add ginkgo and gomega
2018-06-20 18:20:57 +01:00
Dan Williams
1c8ad953d0
test: add test.sh script
2018-06-20 18:20:57 +01:00
Dan Williams
7597640a21
multus: update for CNI 0.7.0-alpha1 release
2018-06-20 18:20:57 +01:00
Dan Williams
92a8b1c1c9
vendor: update containernetworking/cni and add containernetworking/plugins
...
Updated containernetworking/cni moves pkg/ns to containernetworking/plugins
so we need that now too.
2018-06-20 18:20:57 +01:00
Dan Williams
61d212c59a
multus/types: handle delegates as Go structs and other cleanups
2018-06-20 18:20:57 +01:00
Tomofumi Hayashi
8895358816
Merge branch 'dev/network-plumbing-working-group-crd-change' of github.com:intel/multus-cni into dev/network-plumbing-working-group-crd-change
2018-05-18 16:23:56 +09:00
Tomofumi Hayashi
02413ae6dc
Change .travis.yml to put built binary in release. ( #81 )
...
This change adds built binary into release page in tagging.
2018-05-18 16:22:45 +09:00
Tomofumi Hayashi
8f15282d2a
Merge branch 'dev/network-plumbing-working-group-crd-change' of github.com:intel/multus-cni into dev/network-plumbing-working-group-crd-change
2018-05-18 15:34:32 +09:00
Tomofumi Hayashi
ee8bf5785d
Following group name changes in github.
...
This changes to track organization name change in github, from
Intel-Corp to intel.
2018-05-18 15:34:12 +09:00
Tomofumi Hayashi
9621b7fb1f
Change .travis.yml to put built binary in release. ( #81 )
...
This change adds built binary into release page in tagging.
2018-05-18 15:23:46 +09:00
Kuralamudhan Ramakrishnan
9dbd585d04
Updating the Readme file to reflect K8s NPWG CRD changes ( #80 )
...
update readme.md - tpr deprecated in k8s 1.7
2018-05-17 21:57:10 +01:00
Kuralamudhan Ramakrishnan
a2bc6f8bf1
Update Readme file
...
Formatting the table of content
2018-05-17 12:03:22 +01:00
Tomofumi Hayashi
8dda8a5984
Fix flannel configuration to support multiple flannel networks.
2018-05-14 14:27:42 +09:00
Tomofumi Hayashi
215ddb5a1d
Refine multus config file (masterplugin and always_use_default)
...
This fix removes 'masterplugin' and 'always_use_default' from
multus config file. default network, defined in
/etc/cni/net.d/*conf should be master and this network should be
used as default from network plumbing working group draft.
2018-05-11 17:39:43 +01:00
dougbtv
600ca0824b
Demo examples including updates
...
This changes introduces example configuration files for npwg poc.
2018-05-11 09:56:10 +01:00
kuralamudhan ramakrishnan
fd79ef6505
Code refactoring and including conf dir in the CNI Conf file option
...
Change-Id: I2b35377356f2144fd3889bf5de7ac430a19edf89
Co-authored-by: Doug Smith <dougbtv@users.noreply.github.com>
Co-authored-by: Tomofumi Hayashi <s1061123@users.noreply.github.com>
Co-authored-by: Dan Williams <dcbw@users.noreply.github.com>
2018-05-09 18:23:08 +01:00
Tomofumi Hayashi
f0794119ba
Add error message for ifname collision ( #74 )
...
* Add error message for ifname collision
This changes introduce to validateIfName, to check the validation
for interface name, i.e. same name among two or more interfaces.
2018-05-09 15:33:44 +09:00
dougbtv
fcc4d67ddb
[npwg] Validation for comma-delimited format
2018-05-08 09:29:38 +01:00
Tomofumi Hayashi
4eeb1fa43f
Fix default case for CNIDir
...
In case of no-config for CNIDir, multus-cni does not set
defaultCNIDir into CNIDir hence multus-cni failed to create
container network. This change fixes it.
2018-05-08 15:24:49 +09:00
Tomofumi Hayashi
a78a9241f4
Add TrimSpace for CRD config
...
This fix calls TrimSpace at getConfig()'s string manipuration.
2018-05-07 17:25:43 +09:00
dougbtv
fc4652697b
[bugfix][docs] Updates examples to match spec criteria
2018-05-03 22:56:35 +01:00
Doug Smith
696f863d93
Merge pull request #67 from Intel-Corp/dev/npwg-examples
...
Examples for CRD w/ Defacto Standard
2018-05-01 09:49:22 -04:00
kuralamudhan ramakrishnan
9daa880aec
adding config and json CNI file support
...
check #63
Change-Id: I1dbed42dce356a18e365d0f6a8138c8522ab32d5
Co-authored-by: Doug Smith <dougbtv@users.noreply.github.com>
Co-authored-by: Tomofumi Hayashi <s1061123@users.noreply.github.com>
Co-authored-by: Dan Williams <dcbw@users.noreply.github.com>
2018-04-30 15:28:14 +01:00
Jason Murray
b9446232cd
Fix grammar in README
2018-04-28 16:34:18 +01:00
Tomofumi Hayashi
c6a02c4705
Merge pull request #64 from Intel-Corp/dev/nwpg-network-crd-changes
...
added the k8s network plumbing wg network crd structure
2018-04-26 07:20:15 +09:00