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

@@ -140,6 +140,9 @@ type NetworkSelectionElement struct {
// InterfaceRequest contains an optional requested name for the
// network interface this attachment will create in the container
InterfaceRequest string `json:"interface,omitempty"`
// ObsoateInterfaceRequest is obsolated parameter at pre 3.2.
// This will be removed in 4.0 release.
ObsolatedInterfaceRequest string `json:"interfaceRequest,omitempty"`
}
// K8sArgs is the valid CNI_ARGS used for Kubernetes