Commit Graph

330 Commits

Author SHA1 Message Date
Kuralamudhan Ramakrishnan
51974ffb39
Merge pull request #165 from ritusood/master
Merge Results from delegates
2019-03-27 23:49:54 +00:00
ritusood
1c8f153b08
Merge pull request #2 from rkamudhan/dev/pr-165-rebase
Merge and rebase the pr
2019-03-27 14:53:14 -07:00
Kuralamudhan Ramakrishnan
d4bea58766 adding unit test fixes 2019-03-26 14:28:30 +00:00
Kuralamudhan Ramakrishnan
4af9369fef
Merge branch 'master' into dev/pr-165-rebase 2019-03-26 21:56:19 +00:00
Ritu Sood
b43e1d1dca Add CNI-Genie reference in code
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-03-26 13:24:40 +00:00
Kuralamudhan Ramakrishnan
05b4321ab1 adding unit test fixes 2019-03-26 13:24:40 +00:00
Ritu Sood
2939335643 Set interface to nil
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-03-26 13:24:40 +00:00
Ritu Sood
c8c98f8a4c Merge Results from delegates
Currently Master Plugin result is returned by Multus.
This patch merges the results from all delegates as
per the CNI spec. This fixes issues of Multus and
Virtlet.

Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-03-26 13:24:40 +00:00
dougbtv
17c493b65a [travis] Updates Travis to tag master builds as :latest, and adds version tagged images to daemonsets 2019-03-26 13:24:40 +00:00
Casares, Francisco M
7656080a53 Enable Rolling Update on defined DaemonSets
With RollingUpdate update strategy, after you update a DaemonSet template, old DaemonSet pods will be killed, and new DaemonSet pods will be created automatically, in a controlled fashion.
2019-03-26 18:51:22 +00:00
Abdul Halim
175f7b2f04 fix missing deviceID in NetConfList
This patch fixes the issue described in #289 where deviceID for
delegate plugin was not adding properly if the plugin conf inside
NetConfList.

Change-Id: I1d221f6b0e60a5b888b8e823611dfe12635e6897
Signed-off-by: Abdul Halim <abdul.halim@intel.com>
2019-03-26 12:39:44 +00:00
Abdul Halim
d3c92b4aa2 add kubelet client for Pod resource info
This change introduces kubelet client to get allocated device
information of a Pod from newly added Kubelet grpc service.
For more information please see:
[kubernetes/kubernetes#70508](https://github.com/kubernetes/kubernetes/pull/70508)

Change-Id: I11e58ccdd52662601f445fa24c7d55c225441efc
Signed-off-by: Abdul Halim <abdul.halim@intel.com>
2019-03-22 09:50:53 -04:00
Abdul Halim
8ee7eb335e update vendor dependencies for kubelet client
adding new imported package dependencies in vendor which is required
for Kubelet Pod Resource api client.

Change-Id: If6c74598e12af5f8659df69371e72dd064823f49
2019-03-22 09:50:53 -04:00
dougbtv
c319f6b52c [travis] Updates Travis to tag master builds as :latest, and adds version tagged images to daemonsets 2019-03-22 12:13:54 +09:00
dougbtv
1b0b39d2f5 [travis] Updates Travis to tag master builds as :latest, and adds version tagged images to daemonsets 2019-03-22 11:59:49 +09:00
maximshd
08a2623b8e Properly initialize kubeClient in SetNetworkStatus method (#283)
* Properly initialize kubeClient in SetNetworkStatus method

* Fix typo

* Update error message

* Extend logging for setNetworkStatus function
2019-03-20 08:08:48 -04:00
Ashish Billore
362a7d0bd6 Minor Update for typo (#282) 2019-03-13 14:04:48 -04:00
Doug Smith
5e27b3cafb
[entrypoint] Add options to specify logfile & loglevel in entrypoint (#280) 2019-03-07 11:01:03 -05:00
Tomofumi Hayashi
61416cbd40 Add 'verbose' option to logging minimum information (#275)
This change address #274 to add 'verbose option which outputs
minimum information (for usual runs with a bit information than
'error').
2019-03-07 11:00:46 -05:00
Tomofumi Hayashi
102cfc349d Fix multus-daemonset to use configmap to change config in yaml
This fix utilizes ConfigMap for multus.conf to change config from
yaml file. This change allows users to change multus config file
without container image change.
This change removes images/70-multus.conf because it is no longer
used.
2019-03-08 00:04:35 +09:00
Tomofumi Hayashi
5dc774a547 Caches all pod delegates json for pods deletion without k8s info
This fixes #243 with following changes:
 + Optimize to fetch Pod from k8s client
 + Change to use cache always in DEL.
 + If failed to fetch the pod info from k8s clinet in deletion,
  use cached delegates as emergency bailout
 + Add test cases for cache
2019-03-07 23:50:07 +09:00
Doug Smith
f0a43ca0a5
Adds wait loop to entrypoint when --multus-conf-file=auto (#234)
* [entrypoint] Adds wait loop when using --multus-conf-file=auto waits for presence of any conf file

* [entrypoint] fixes incorrect logical comparison

* [entrypoint] add log every 5 tries, fix tries increment, fix logical comparison

* [entrypoint] fix attempt output
2019-02-28 13:56:08 -05:00
Doug Smith
560d07f007
Merge pull request #273 from pliurh/config-file
Generate Multus config file regardless
2019-02-28 09:25:46 -05:00
Peng Liu
93db092895 Generate Multus config file regardless 2019-02-27 17:47:47 +08:00
Doug Smith
0010cd99ff
Merge pull request #236 from hanxueluo/master
fix crash caused by empty delegates when use clusterNetwork
2019-02-26 07:17:36 -05:00
Tomofumi Hayashi
260316398f Change ClusterNetwork/DefaultNetwork namespace to MultusNamespace
Fix #261.
2019-02-22 14:08:30 +00:00
dougbtv
9b41f7635d Allows cmdDel to finish if netns doesn't exist, omits deferred netns.Close() in such a case 2019-02-22 13:54:03 +00:00
Doug Smith
8bf358071a Changes configuration for kube api to use gRPC 2019-02-21 14:42:57 +00:00
Tomofumi Hayashi
1fd6e131ac Fix term in svg file (default network -> cluster network) 2019-02-18 12:44:55 +09:00
Huanle Han
49d55d6f45 fix cmdDel crash when use pod annotation "v1.multus-cni.io/default-network"
Crash happens in code line `conf.Delegates[0] = delegate` in function TryLoadPodDelegates,
because len(conf.Delegates) is 0.

Signed-off-by: Huanle Han <hanhuanle@caicloud.io>
2019-02-11 18:18:36 +08:00
Tomofumi Hayashi
f0bc4fb475 Add multusNamespace/systemNamespaces config
This change provides new configuration parameters, multusNamespace
and systemNamespaces for flexible namespace management.
The change addresses issue #252 and issue #253.
2019-02-08 00:25:35 +09:00
Doug Smith
ec9dff343c
Merge pull request #245 from knightXun/multus
refactor k8sclient: rename some val
2019-02-07 10:19:21 -05:00
Doug Smith
515e7eb92c
Merge pull request #248 from dougbtv/quickstart-master-name
[docs] Adds note about master device name
2019-02-07 10:16:24 -05:00
Doug Smith
7984e7b007
Merge pull request #255 from aneeshkp/multus-crio
Fix Bin directory is different when using CRI-O
2019-02-07 10:12:45 -05:00
Doug Smith
d9188e4463
Merge pull request #258 from dcbw/teardown-add-cleanup
multus: simplify teardown on add error and clarify error message
2019-02-07 10:10:32 -05:00
Abdul Halim
34231166ae create empty NetworkStatus for empty Result struct
This fixes the issue described in #211 where LoadNetworkStatus is
throwing in errors if a delegate plugin returns empty Result that
contains in IPAM information.

This change will allow ignoreing the errors propagated from parsing
an empty Result and continue with next one.

Change-Id: Ife4b6103de044256233d581fa74759423ed94ff5
2019-02-05 16:16:32 +00:00
Dan Williams
063a3593b8 multus: simplify teardown on add error and clarify error message
Signed-off-by: Dan Williams <dcbw@redhat.com>
2019-02-04 10:55:08 -06:00
Aneesh Puttur
f229cbe47f moved crio details out of the README.md and into the ./docs/quickstart.md 2019-01-30 09:22:46 -05:00
Aneesh Puttur
747d31bb30 Fix Bin directory is different when using CRI-O
Added new configuration file for crio runtime multus-crio-daemonset.yml
Added instructions to readme for crio users.
Fixes #224
Signed-off-by : Aneesh Puttur <aputtur@redhat.com>
2019-01-29 10:56:35 -05:00
Moshe Levi
cd6f9880ac Fix multus dir creation in how-to-use.md
Change-Id: I3d7db11bf6216c2e1ddcab9d61c0c8e4fb8c0010
Signed-off-by: Moshe Levi <moshele@mellanox.com>
2019-01-27 19:41:01 +00:00
dougbtv
3ae7af14be [docs] Adds note about master device name 2019-01-25 14:30:14 -05:00
Md Safiyat Reza
c6c9706855 Fixed the internal link to the 'create-network-attachment-definition' section. 2019-01-25 15:42:53 +00:00
knight
66595e8172 refactor k8sclient: rename some val 2019-01-25 09:54:53 +08:00
Ritu Sood
0cee7bfdb1 Add CNI-Genie reference in code
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-01-24 06:48:37 -08:00
ritusood
5def0b7a00
Merge pull request #1 from rkamudhan/dev/pr-165-rebase
Rebase code to work on the Unit testing
2019-01-22 09:37:16 -08:00
Doug Smith
a4951bbd0d
Merge pull request #242 from dougbtv/entrypoint-movefile
Updates entrypoint for atomic move of binary
2019-01-22 10:45:19 -05:00
dougbtv
d7e8809cf8 [entrypoint] Updates entrypoint for atomic move of binary (for cleaner upgrade) 2019-01-22 10:38:02 -05:00
Kuralamudhan Ramakrishnan
07ab852520 adding unit test fixes 2019-01-21 23:15:13 +00:00
Kuralamudhan Ramakrishnan
84a6ad5ccf rebase the #165 PR commit 2019-01-21 22:33:07 +00:00
Ritu Sood
b90f0e2ed6 Set interface to nil
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-01-20 02:18:36 -08:00