Skip to content

Commit 6df9f09

Browse files
committed
Add match condition expression names
Signed-off-by: Max Smythe <[email protected]>
1 parent a7470dd commit 6df9f09

File tree

1 file changed

+4
-2
lines changed
  • keps/sig-api-machinery/3488-cel-admission-control

1 file changed

+4
-2
lines changed

keps/sig-api-machinery/3488-cel-admission-control/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,8 +1138,10 @@ Spec:
11381138
operations: ["CREATE", "UPDATE"]
11391139
resources: ["deployments"]
11401140
matchConditions:
1141-
- expression: 'metadata.kind == "Deployment"'
1142-
- expression: '!(metadata.namespace in params.excludedNamespaces)'
1141+
- name: 'is-deployment'
1142+
expression: 'metadata.kind == "Deployment"'
1143+
- name: 'not-in-excluded-namespaces'
1144+
expression: '!(metadata.namespace in params.excludedNamespaces)'
11431145
validations:
11441146
- expression: "object.spec.replicas <= params.maxReplicas"
11451147
reason: Invalid

0 commit comments

Comments
 (0)