1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-13 11:18:47 +00:00
kyverno/test/conformance/manifests/should-fail/background-userinfo-1.yaml

21 lines
414 B
YAML
Raw Normal View History

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