Skip to content

Commit 45302dc

Browse files
committed
Group expexted error consts
1 parent 8612c21 commit 45302dc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/cel/common.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@ const (
3030
discoveryGroup = "discovery.k8s.io/v1"
3131
)
3232

33+
// ClientSettingsPolicy validation errors.
34+
const (
35+
expectedTargetRefKindError = `TargetRef Kind must be one of: Gateway, HTTPRoute, or GRPCRoute`
36+
expectedTargetRefGroupError = `TargetRef Group must be gateway.networking.k8s.io.`
37+
expectedHeaderWithoutServerError = `header can only be specified if server is specified`
38+
)
39+
40+
// NginxProxy validation errors.
3341
const (
34-
expectedTargetRefKindError = `TargetRef Kind must be one of: Gateway, HTTPRoute, or GRPCRoute`
35-
expectedTargetRefGroupError = `TargetRef Group must be gateway.networking.k8s.io.`
36-
expectedHeaderWithoutServerError = `header can only be specified if server is specified`
3742
expectedOneOfDeploymentOrDaemonSetError = `only one of deployment or daemonSet can be set`
3843
expectedIfModeSetTrustedAddressesError = `if mode is set, trustedAddresses is a required field`
3944
expectedMinReplicasLessThanOrEqualError = `minReplicas must be less than or equal to maxReplicas`

0 commit comments

Comments
 (0)