Releases: k8snetworkplumbingwg/network-attachment-definition-client
v1.7.5
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
v1.7.3
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
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
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
v1.6.0
v1.5.0
v1.4.0
What's Changed
- network-status: add GW info by @maiqueb in #42
- Update DeviceInfo spec to 1.1.0 by @ykulazhenkov in #49
Full Changelog: v1.3.0...v1.4.0