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