Dan Williams
d773dcfaad
CRD: interfaceRequest -> interface (v1 spec conformance)
...
Change the Network Attachment Selection Annotation long-form
interface name request JSON key from 'interfaceRequest' to
'interface' to conform with the V1 NPWG spec.
2018-12-19 16:02:36 -05:00
Tomofumi Hayashi
bcc6e21587
Fix rebase conflicts.
2018-12-19 16:02:35 -05:00
Tomofumi Hayashi
dd9fedee2a
Remove unnecessary else clause
2018-12-19 15:55:45 -05:00
Tomofumi Hayashi
91a0e74a0d
Change json field name to align with NPWG spec v1.
2018-12-19 15:55:45 -05:00
Tomofumi Hayashi
dae85d7781
Support MacRequest to specify MAC address for interface
2018-12-19 15:55:44 -05:00
Tomofumi Hayashi
6b0266148b
Add clusterNetwork/defaultNetwork into multus
...
To support CRD/file/directory, add clusterNetwork/defaultNetwork
in multus.conf file.
2018-12-19 15:55:44 -05:00
Tomofumi Hayashi
55792b94d5
Add unit tests for clusterNetwork/defaultNetworks
2018-12-19 15:55:44 -05:00
Tomofumi Hayashi
bb89e538eb
[divergence] Add clusterNetwork/defaultNetwork into multus
...
To support CRD/file/directory, add clusterNetwork/defaultNetwork
in multus.conf file.
2018-12-19 15:55:37 -05:00
dougbtv
ae626b4aa5
[bugfix][divergence] Diverges from master in requiring change to logging.Debugf value changed from string
2018-11-01 22:41:56 +09:00
Doug Smith
ae9a1a5c10
Default network readiness [NOTE: Conflict due to omitted commit during cherry pick for stable]
2018-11-01 22:41:56 +09:00
Abdul Halim
539e92b8b0
parse kubelet checkpoint file for pod devices
...
Enabling kubelete checkpoint file parsing to get Pod device info
so that these device information can be passed into CNI plugins
that need specific device information to work on.
Change-Id: I6630f56adc0a8307f575fc09ce9090c1ffca0337
2018-11-01 22:41:56 +09:00
Tomofumi Hayashi
8e4c092192
Convert bytes to string in Debugf()
2018-08-17 00:43:31 +01:00
Tomofumi Hayashi
7d3626a5c0
Add logging message for debug/error
...
This changes adds logging message:debug and error. fmt.Errorf() is
wrapped by logging.Errorf() hence all error message is also put to
log file. logging.Debugf() is called at almost function call, so
we could track the code by logging message.
2018-08-17 00:43:31 +01:00
rkamudhan
8bb09518df
adding network status features
2018-07-30 14:58:30 +01:00
rkamudhan
707007abba
adding k8sclient bug fixes
2018-07-27 23:43:17 +01:00
rkamudhan
7372922617
adding conflist support
2018-07-27 23:43:17 +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
Tomofumi Hayashi
371b27b16a
Incorporate rkamudhan's comment.
2018-07-13 15:10:53 +09: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
0b1e8689dc
k8sclient: use Go struct to parse annotations and add 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
7597640a21
multus: update for CNI 0.7.0-alpha1 release
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
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
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
kuralamudhan ramakrishnan
25fe46dda7
added the k8s network plumbing wg network crd structure
...
see issue #61 and #62 for more info
Change-Id: I228d17d7b15985fb3a2209799a085bba2b97980c
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-25 16:42:46 +01:00
kuralamudhan ramakrishnan
122dbfb345
adding type package in multus
2018-04-18 09:20:54 +01:00