FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(setup): namespace validation · apache/openserverless-task@4555536 · GitHub

Commit 4555536

Browse files
committed
fix(setup): namespace validation
added namespace validation to whisk-user-crd: this crd will be used by the operator to create users. Signed-off-by: Bruno Salzano <d4rkstar@gmail.com>
1 parent 3a149de commit 4555536

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎setup/kubernetes/crds/whisk-user-crd.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ spec:
6969
type: string
7070
namespace:
7171
description: ow namespace assigned to the user
72-
type: string
72+
type: string
73+
x-kubernetes-validations:
74+
- rule: "self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')"
75+
message: "Invalid namespace name"
7376
auth:
7477
description: ow auth used to authenticate the user
7578
type: string
@@ -87,6 +90,9 @@ spec:
8790
prefix:
8891
description: redis key prefixused to configure a user custom made ACL
8992
type: string
93+
x-kubernetes-validations:
94+
- rule: "self.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')"
95+
message: "Invalid redis username name"
9096
password:
9197
description: user redis password
9298
type: string

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL