Skip to content

Commit 7605be9

Browse files
committed
Fix validation typo
1 parent 07131b0 commit 7605be9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apis/v1alpha1/upstreamsettingspolicy_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type UpstreamSettingsPolicySpec struct {
5858
// +kubebuilder:validation:MinItems=1
5959
// +kubebuilder:validation:MaxItems=16
6060
// +kubebuilder:validation:XValidation:message="TargetRefs Kind must be: Service",rule="self.all(t, t.kind=='Service')"
61-
// +kubebuilder:validation:XValidation:message="TargetRefs Group must be core",rule="self.exists(t, t.group=='') || self.exists(t, t.group==`core`)"
61+
// +kubebuilder:validation:XValidation:message="TargetRefs Group must be core",rule="self.exists(t, t.group=='') || self.exists(t, t.group=='core')"
6262
//nolint:lll
6363
TargetRefs []gatewayv1alpha2.LocalPolicyTargetReference `json:"targetRefs"`
6464
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ spec:
126126
- message: 'TargetRefs Kind must be: Service'
127127
rule: self.all(t, t.kind=='Service')
128128
- message: TargetRefs Group must be core
129-
rule: self.exists(t, t.group=='') || self.exists(t, t.group==`core`)
129+
rule: self.exists(t, t.group=='') || self.exists(t, t.group=='core')
130130
zoneSize:
131131
description: |-
132132
ZoneSize is the size of the shared memory zone used by the upstream. This memory zone is used to share

0 commit comments

Comments
 (0)