Skip to content

Commit

Permalink
omit backend field when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
DockToFuture committed Dec 1, 2022
1 parent cfc7e58 commit 887d793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/calico/v1alpha1/types_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type NetworkConfig struct {
metav1.TypeMeta `json:",inline"`
// Backend defines whether a backend should be used or not (e.g., bird or none)
// +optional
Backend *Backend `json:"backend"`
Backend *Backend `json:"backend,omitempty"`
// IPAM to use for the Calico Plugin (e.g., host-local or Calico)
// +optional
IPAM *IPAM `json:"ipam,omitempty"`
Expand Down

0 comments on commit 887d793

Please sign in to comment.