diff --git a/apps/stage-maker/namespace-prefix-policy.yaml b/apps/stage-maker/namespace-prefix-policy.yaml index 6b6303f..2c79e52 100644 --- a/apps/stage-maker/namespace-prefix-policy.yaml +++ b/apps/stage-maker/namespace-prefix-policy.yaml @@ -12,7 +12,7 @@ spec: resources: ["namespaces"] matchConditions: - name: 'only-stage-editor' - value: "request.userInfo.username == 'system:serviceaccount:stage-maker: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-'"