Skip to content

Releases: k8snetworkplumbingwg/network-attachment-definition-client

v1.7.5

15 Oct 15:27
7d2def1
Compare
Choose a tag to compare

This release contains a fix related to the determination of the default interface, e.g. setting the default parameter to true in the network-status annotation based on the presence of a gateway in the CNI ADD success result ips.gateway and makes the determination of the default based on the first interface that has an associated value of gateway (using the interface index in the ips element in the CNI ADD success result).

This provides flexibility especially in CRI-O which uses the first interface and IP addresses for the pod.IP in Kubernetes, therefore. Containerd functionality is unchanged in that it uses the value for the IP addresses specifically

It's worth noting that CNI ADD success results which do not contain any interfaces will be discarded in this determination of the default, therefore it's recommended to set one with an associated gateway if aiming to have it be noted as the default.

v1.7.4

30 Sep 19:38
9b218a2
Compare
Choose a tag to compare

This release accounts for CNI plugins which do not use the sandbox field in results when calculating the network-status annotation, doing so for backwards compatibility for plugins which choose to not use this field (such as Calico)

v1.7.3

13 Sep 13:55
506cfda
Compare
Choose a tag to compare

This release accounts for the sandox interfaces when reporting the interfaces in the network-status annotation; in case the CreateNetworkStatuses clients invoke it with a CNI result featuring non-sandbox interfaces as the first item in the list, this release accounts for that condition.

v1.7.2

12 Sep 14:04
d23f60f
Compare
Choose a tag to compare

When the CreateNetworkStatuses method was created to properly set the network-status annotation when a CNI result includes multiple interfaces in the return, it was found that it when setting the "default" parameter in the network-status, it was setting it to all the returned interfaces to true, which doesn't fit the NPWG net-attach-def specification.

This release fixes that issue by using the first interface in the CNI result set to "default": true for the cluster default network and not the following interfaces.

NOTE Do not use this version, use >= v1.7.3

v1.7.1

01 Aug 17:23
ec02fb3
Compare
Choose a tag to compare

Adds the CreateNetworkStatuses method to properly set the network-status annotation when a CNI result includes multiple interfaces in the return.

For details of the before/after, see this gist: https://gist.github.com/dougbtv/1eb8ac2d61d494b56d65a6b236a86e61

For the related suggested update to the NPWG net-attach-def specification (for clarity only), see this proposal @ https://docs.google.com/document/d/1DUTV-o6E6zlRTKZkxeDhAeyGrmq03qPgPbU580Rm7-g/edit

v1.7.0

11 Apr 13:45
8a8e914
Compare
Choose a tag to compare

Adds MTU to network-status

v1.6.0

15 Feb 14:09
509898b
Compare
Choose a tag to compare

Adds IPAMClaimReference to network-selection-elements

v1.5.0

19 Jan 05:35
4ee862c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.4.0...v1.5.0

v1.4.0

07 Dec 13:59
6beb26a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.3.0...v1.4.0

v1.1.1

01 Aug 17:21
Compare
Choose a tag to compare

This makes a change to allow CNI v1.0 formatted IP information (which omits the version parameter) previously, we'd require that the version was there, however, this is changed in recently releases, and needs update in v1.1.