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:
Tomofumi Hayashi
2019-08-23 00:19:06 +09:00
committed by Doug Smith
parent b2e1098ab5
commit 05df28a58c
4 changed files with 7 additions and 84 deletions

View File

@@ -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