Skip to content

Commit

Permalink
Remove period from validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Sep 6, 2024
1 parent 42f7fd6 commit 07131b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/v1alpha1/upstreamsettingspolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type UpstreamSettingsPolicySpec struct {
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=16
// +kubebuilder:validation:XValidation:message="TargetRefs Kind must be: Service",rule="self.all(t, t.kind=='Service')"
// +kubebuilder:validation:XValidation:message="TargetRefs Group must be core.",rule="self.exists(t, t.group=='') || self.exists(t, t.group==`core`)"
// +kubebuilder:validation:XValidation:message="TargetRefs Group must be core",rule="self.exists(t, t.group=='') || self.exists(t, t.group==`core`)"
//nolint:lll
TargetRefs []gatewayv1alpha2.LocalPolicyTargetReference `json:"targetRefs"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ spec:
x-kubernetes-validations:
- message: 'TargetRefs Kind must be: Service'
rule: self.all(t, t.kind=='Service')
- message: TargetRefs Group must be core.
- message: TargetRefs Group must be core
rule: self.exists(t, t.group=='') || self.exists(t, t.group==`core`)
zoneSize:
description: |-
Expand Down

0 comments on commit 07131b0

Please sign in to comment.