1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-14 03:38:48 +00:00
kyverno/test/conformance/manifests/should-fail/background-userinfo-2.yaml

22 lines
436 B
YAML
Raw Normal View History

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: background-userinfo-2
spec:
validationFailureAction: audit
background: true
rules:
- name: ns-clusterroles-old
match:
resources:
kinds:
- Pod
clusterRoles:
- foo-admin
validate:
message: The `owner` label is required for all Namespaces.
pattern:
metadata:
labels:
owner: "?*"