Skip to content

Commit d4a544a

Browse files
committed
pkg/converter: support zero ratelimit
- Update CRD to allow zero ratelimit - Fixed metadata.name length CRD update
1 parent 513a93a commit d4a544a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cluster/manifests/fabric-gateway/fabricgateway_crd.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
apiVersion: apiextensions.k8s.io/v1
23
kind: CustomResourceDefinition
34
metadata:
@@ -227,7 +228,8 @@ spec:
227228
description: |-
228229
User specific value to apply to the route. If the particular user makes more requests that
229230
value within the defined period, then this user will start getting HTTP 429 responses.
230-
minimum: 1
231+
Setting `rate` to 0 will cause all requests matching the rate limit configuration to be denied.
232+
minimum: 0
231233
type: integer
232234
required:
233235
- headers
@@ -381,7 +383,8 @@ spec:
381383
description: |-
382384
User specific value to apply to the route. If the particular user makes more requests that
383385
value within the defined period, then this user will start getting HTTP 429 responses.
384-
minimum: 1
386+
Setting `rate` to 0 will cause all requests matching the rate limit configuration to be denied.
387+
minimum: 0
385388
type: integer
386389
required:
387390
- headers
@@ -641,8 +644,8 @@ spec:
641644
- spec
642645
type: object
643646
x-kubernetes-validations:
644-
- message: metadata.name may not be longer than 63, see https://fabric.docs.zalando.net/fabric-gateway-troubleshooting/#gateway-troubleshooting
645-
rule: size(self.metadata.name) < 64
647+
- message: metadata.name may not be longer than 63, see https://fabric.docs.zalando.net/fabric-gateway-troubleshooting/#gateway-troubleshooting
648+
rule: size(self.metadata.name) < 64
646649
served: true
647650
storage: true
648651
subresources:

0 commit comments

Comments
 (0)