fix expression
This commit is contained in:
@@ -14,8 +14,8 @@ spec:
|
|||||||
- name: 'only-stage-editor'
|
- name: 'only-stage-editor'
|
||||||
expression: "request.userInfo.username == 'system:serviceaccount:stage-maker:stage-editor'"
|
expression: "request.userInfo.username == 'system:serviceaccount:stage-maker:stage-editor'"
|
||||||
validations:
|
validations:
|
||||||
- expression: "object.metadata.namespace.startsWith('team-')"
|
- expression: "object.metadata.name.startsWith('team-')"
|
||||||
message: "All namespace requests by stage-editor must start with 'team-'"
|
message: "All namespaces managed by stage-editor must start with 'team-'"
|
||||||
---
|
---
|
||||||
apiVersion: admissionregistration.k8s.io/v1
|
apiVersion: admissionregistration.k8s.io/v1
|
||||||
kind: ValidatingAdmissionPolicyBinding
|
kind: ValidatingAdmissionPolicyBinding
|
||||||
|
|||||||
Reference in New Issue
Block a user