fix expression

This commit is contained in:
2025-10-28 16:16:41 -05:00
parent 411d10f349
commit b9a69a7d5d

View File

@@ -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