@@ -36,7 +36,7 @@ const (
36
36
// ClientSettingsPolicy validation errors.
37
37
const (
38
38
expectedTargetRefKindError = `TargetRef Kind must be one of: Gateway, HTTPRoute, or GRPCRoute`
39
- expectedTargetRefGroupError = `TargetRef Group must be gateway.networking.k8s.io. `
39
+ expectedTargetRefGroupError = `TargetRef Group must be gateway.networking.k8s.io`
40
40
expectedHeaderWithoutServerError = `header can only be specified if server is specified`
41
41
)
42
42
@@ -47,6 +47,13 @@ const (
47
47
expectedMinReplicasLessThanOrEqualError = `minReplicas must be less than or equal to maxReplicas`
48
48
)
49
49
50
+ // ObservabilityPolicy validation errors.
51
+ const (
52
+ expectedTargetRefMustBeHTTPRouteOrGrpcRouteError = `TargetRef Kind must be: HTTPRoute or GRPCRoute`
53
+ expectedTargetRefKindAndNameComboMustBeUnique = `TargetRef Kind and Name combination must be unique`
54
+ expectedStrategyMustBeOfTypeRatio = `ratio can only be specified if strategy is of type ratio`
55
+ )
56
+
50
57
// UpstreamSettingsPolicy validation errors.
51
58
const (
52
59
expectedTargetRefKindServiceError = `TargetRefs Kind must be: Service`
0 commit comments