1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/conformance/chainsaw/policy-validation/cluster-policy/background-variables-update/policy.yaml

20 lines
434 B
YAML
Raw Normal View History

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: background-variables-update
spec:
validationFailureAction: Audit
background: false
rules:
- name: ns-vars-userinfo
match:
any:
- resources:
kinds:
- Pod
validate:
message: The `owner` label is required for all Namespaces.
pattern:
metadata:
labels:
owner: "{{request.userInfo}}"