1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/test/conformance/chainsaw/policy-validation/cluster-policy/background-variables-update/policy-update.yaml
Mariam Fahmy 2140a0239b
chore: rename validationFailureAction to failureAction under the rule (#10893)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2024-08-27 20:07:57 +00:00

20 lines
No EOL
408 B
YAML

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: background-variables-update
spec:
background: true
rules:
- name: ns-vars-userinfo
match:
any:
- resources:
kinds:
- Pod
validate:
failureAction: Audit
message: The `owner` label is required for all Namespaces.
pattern:
metadata:
labels:
owner: foo