Skip to content

Commit ec8b296

Browse files
authored
Merge pull request #8883 from zalando-incubator/fabric/update-crd
fabric: update crd
2 parents 504f327 + dde4c6b commit ec8b296

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

cluster/manifests/fabric-gateway/fabricgateway_crd.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ spec:
140140
description: The description of requests which must
141141
be routed through the corresponding custom route
142142
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
143151
headers:
144152
additionalProperties:
145153
type: string
@@ -148,9 +156,11 @@ spec:
148156
specific request should be processed by this route.
149157
minProperties: 1
150158
type: object
151-
required:
152-
- headers
153159
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)
154164
x-fabric-privileges:
155165
description: The name of a scope which will be extracted
156166
from the bearer token

0 commit comments

Comments
 (0)