Skip to content

Commit

Permalink
Merge pull request #41 from yaocw2020/master
Browse files Browse the repository at this point in the history
Add omitempty tag for NetworkSelectionElement.CNIArgs
  • Loading branch information
phoracek authored Nov 10, 2021
2 parents 2bdd550 + ee449cc commit b49df63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/k8s.cni.cncf.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ type NetworkSelectionElement struct {
// the network
BandwidthRequest *BandwidthEntry `json:"bandwidth,omitempty"`
// CNIArgs contains additional CNI arguments for the network interface
CNIArgs *map[string]interface{} `json:"cni-args"`
CNIArgs *map[string]interface{} `json:"cni-args,omitempty"`
// GatewayRequest contains default route IP address for the pod
GatewayRequest []net.IP `json:"default-route,omitempty"`
}
Expand Down

0 comments on commit b49df63

Please sign in to comment.