forked from github/multus-cni
Remove UnmarshalJSON() for NetworkSelectionElement (#362)
To support non-string variable in NetworkSelectionElement, remove UnmarshalJSON(). interfaceRequest json is still supported in the changes.
This commit is contained in:
committed by
Doug Smith
parent
b2e1098ab5
commit
05df28a58c
@@ -232,6 +232,10 @@ func parsePodNetworkAnnotation(podNetworks, defaultNamespace string) ([]*types.N
|
||||
if net.Namespace == "" {
|
||||
net.Namespace = defaultNamespace
|
||||
}
|
||||
// compatibility pre v3.2, will be removed in v4.0
|
||||
if net.ObsolatedInterfaceRequest != "" && net.InterfaceRequest == "" {
|
||||
net.InterfaceRequest = net.ObsolatedInterfaceRequest
|
||||
}
|
||||
}
|
||||
|
||||
return networks, nil
|
||||
|
Reference in New Issue
Block a user