File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
cluster/manifests/fabric-gateway Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ spec:
140
140
description : The description of requests which must
141
141
be routed through the corresponding custom route
142
142
properties :
143
+ headerRegexps :
144
+ additionalProperties :
145
+ type : string
146
+ description : |-
147
+ HeaderRegexps defines HTTP headers and corresponding regular expressions.
148
+ If a request header matches the provided regex, the route is considered a match.
149
+ minProperties : 1
150
+ type : object
143
151
headers :
144
152
additionalProperties :
145
153
type : string
@@ -148,9 +156,11 @@ spec:
148
156
specific request should be processed by this route.
149
157
minProperties : 1
150
158
type : object
151
- required :
152
- - headers
153
159
type : object
160
+ x-kubernetes-validations :
161
+ - message : at least one of headers or headerRegexps
162
+ must be specified
163
+ rule : has(self.headers) || has(self.headerRegexps)
154
164
x-fabric-privileges :
155
165
description : The name of a scope which will be extracted
156
166
from the bearer token
You can’t perform that action at this time.
0 commit comments