mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-09 12:51:39 +00:00
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
@@ -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
|
||||
|
Reference in New Issue
Block a user