Skip to content

Commit 4507089

Browse files
committed
update crds
1 parent 8af8136 commit 4507089

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

config/crd/bases/k8s.nginx.org_policies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,14 @@ spec:
186186
jwt:
187187
properties:
188188
claim:
189+
pattern: ^([^$\s"'])*$
189190
type: string
190191
match:
192+
pattern: ^([^$\s."'])*$
191193
type: string
194+
required:
195+
- claim
196+
- match
192197
type: object
193198
type: object
194199
delay:

deploy/crds.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,14 @@ spec:
348348
jwt:
349349
properties:
350350
claim:
351+
pattern: ^([^$\s"'])*$
351352
type: string
352353
match:
354+
pattern: ^([^$\s."'])*$
353355
type: string
356+
required:
357+
- claim
358+
- match
354359
type: object
355360
type: object
356361
delay:

pkg/apis/configuration/v1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,10 +622,10 @@ type RateLimitCondition struct {
622622

623623
type JWTCondition struct {
624624
// +kubebuilder:validation:Required
625-
// +kubebuilder:validation:Pattern=^([^$\s"'])*$
625+
// +kubebuilder:validation:Pattern=`^([^$\s"'])*$`
626626
Claim string `json:"claim"`
627627
// +kubebuilder:validation:Required
628-
// +kubebuilder:validation:Pattern=^([^$\s."'])*$
628+
// +kubebuilder:validation:Pattern=`^([^$\s."'])*$`
629629
Match string `json:"match"`
630630
}
631631

0 commit comments

Comments
 (0)