A replica limit that kubectl scale walks past

Predict the outcome

Difficulty 2 of 3Not solved yet

This policy is bound with validationActions: [Deny] to every namespace labelled environment: test. The Deployment web in such a namespace runs 3 replicas. Someone runs kubectl scale deployment web --replicas=20. What happens?

Your first answer is the one that counts. After a miss you can try again, or ask for the answer.

apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
name: replica-limit.example.com
spec:
failurePolicy: Fail
matchConstraints:
resourceRules:
- apiGroups: ["apps"]
apiVersions: ["v1"]
operations: ["CREATE", "UPDATE"]
resources: ["deployments"]
validations:
- expression: "object.spec.replicas <= 5"
message: "replicas must be 5 or fewer"
Your prediction