Skip to content

Commit

Permalink
Merge pull request #225 from DockToFuture/automated-cherry-pick-of-#2…
Browse files Browse the repository at this point in the history
…24-upstream-release-v1.27

omit backend field when empty
  • Loading branch information
DockToFuture authored Dec 1, 2022
2 parents cfc7e58 + 887d793 commit 83fb4e8
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 83fb4e8

Please sign in to comment.