Support 'cni-args' in NetworkSelectionElement

This commit is contained in:
Tomofumi Hayashi
2019-08-19 17:17:51 +09:00
committed by Tomofumi Hayashi
parent adec211ae1
commit 2745e46ed8
4 changed files with 190 additions and 4 deletions

View File

@@ -233,10 +233,6 @@ func parsePodNetworkAnnotation(podNetworks, defaultNamespace string) ([]*types.N
if n.Namespace == "" {
n.Namespace = defaultNamespace
}
// compatibility pre v3.2, will be removed in v4.0
if n.DeprecatedInterfaceRequest != "" && n.InterfaceRequest == "" {
n.InterfaceRequest = n.DeprecatedInterfaceRequest
}
if n.MacRequest != "" {
// validate MAC address
if _, err := net.ParseMAC(n.MacRequest); err != nil {