Skip to content

Commit b403e07

Browse files
committed
small fixes
1 parent 9b8d48e commit b403e07

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

apis/v1alpha1/wafpolicy_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ type WAFPolicyValidation struct {
109109
// Currently supported: ["checksum"]
110110
//
111111
// +optional
112-
// +kubebuilder:validation:UniqueItems=true
113112
// +listType=set
114113
Methods []WAFPolicyValidationMethod `json:"methods,omitempty"`
115114
}
@@ -240,7 +239,7 @@ type SecurityLogDestination struct {
240239
// Type identifies the type of security log destination.
241240
//
242241
// +unionDiscriminator
243-
// +kubebuilder:default:=stderr
242+
// +kubebuilder:default=stderr
244243
Type SecurityLogDestinationType `json:"type"`
245244
}
246245

apis/v1alpha2/nginxproxy_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type NginxProxySpec struct {
4141
// Default is "dual", meaning the server will use both IPv4 and IPv6.
4242
//
4343
// +optional
44-
// +kubebuilder:default:=dual
44+
// +kubebuilder:default=dual
4545
IPFamily *IPFamilyType `json:"ipFamily,omitempty"`
4646
// Telemetry specifies the OpenTelemetry configuration.
4747
//
@@ -498,7 +498,7 @@ type Image struct {
498498
// PullPolicy describes a policy for if/when to pull a container image.
499499
//
500500
// +optional
501-
// +kubebuilder:default:=IfNotPresent
501+
// +kubebuilder:default=IfNotPresent
502502
PullPolicy *PullPolicy `json:"pullPolicy,omitempty"`
503503
}
504504

@@ -522,15 +522,15 @@ type ServiceSpec struct {
522522
// ServiceType describes ingress method for the Service.
523523
//
524524
// +optional
525-
// +kubebuilder:default:=LoadBalancer
525+
// +kubebuilder:default=LoadBalancer
526526
ServiceType *ServiceType `json:"type,omitempty"`
527527

528528
// ExternalTrafficPolicy describes how nodes distribute service traffic they
529529
// receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs,
530530
// and LoadBalancer IPs.
531531
//
532532
// +optional
533-
// +kubebuilder:default:=Local
533+
// +kubebuilder:default=Local
534534
ExternalTrafficPolicy *ExternalTrafficPolicy `json:"externalTrafficPolicy,omitempty"`
535535

536536
// LoadBalancerIP is a static IP address for the load balancer. Requires service type to be LoadBalancer.

config/crd/bases/gateway.nginx.org_wafpolicies.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ spec:
146146
- checksum
147147
type: string
148148
type: array
149-
uniqueItems: true
150149
x-kubernetes-list-type: set
151150
type: object
152151
required:
@@ -327,7 +326,6 @@ spec:
327326
- checksum
328327
type: string
329328
type: array
330-
uniqueItems: true
331329
x-kubernetes-list-type: set
332330
type: object
333331
required:

0 commit comments

Comments
 (0)