File tree Expand file tree Collapse file tree 2 files changed +384
-0
lines changed Expand file tree Collapse file tree 2 files changed +384
-0
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ const (
22
22
grpcRouteKind = "GRPCRoute"
23
23
tcpRouteKind = "TCPRoute"
24
24
invalidKind = "InvalidKind"
25
+ serviceKind = "Service"
25
26
)
26
27
27
28
const (
28
29
gatewayGroup = "gateway.networking.k8s.io"
29
30
invalidGroup = "invalid.networking.k8s.io"
30
31
discoveryGroup = "discovery.k8s.io/v1"
32
+ coreGroup = "core"
33
+ emptyGroup = ""
31
34
)
32
35
33
36
// ClientSettingsPolicy validation errors.
@@ -44,6 +47,13 @@ const (
44
47
expectedMinReplicasLessThanOrEqualError = `minReplicas must be less than or equal to maxReplicas`
45
48
)
46
49
50
+ // UpstreamSettingsPolicy validation errors.
51
+ const (
52
+ expectedTargetRefKindServiceError = `TargetRefs Kind must be: Service`
53
+ expectedTargetRefGroupCoreError = `TargetRefs Group must be core`
54
+ expectedTargetRefNameUniqueError = `TargetRef Name must be unique`
55
+ )
56
+
47
57
const (
48
58
defaultNamespace = "default"
49
59
)
You can’t perform that action at this time.
0 commit comments