Skip to content

Commit 343d24a

Browse files
committed
omitempty is obsolete
1 parent fb1abc5 commit 343d24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/v1alpha2/nginxproxy_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ type HostPort struct {
618618
// Whether to enable hostPort feature
619619
// If not specified, or set to false, hostPort will not be enabled.
620620
// +optional
621-
Enable bool `json:"enable,omitempty"`
621+
Enable bool `json:"enable"`
622622

623623
// Number of port to expose on the host.
624624
// kubebuilder:validation:Minimum=1

0 commit comments

Comments
 (0)