1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/conformance/chainsaw/webhooks/unknown-kind/policy-4.yaml

21 lines
399 B
YAML
Raw Normal View History

apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: unknown
spec:
background: false
rules:
- name: unknown
match:
any:
- resources:
kinds:
- Pod/foo
validate:
failureAction: Audit
message: 'The label `team` is required.'
pattern:
metadata:
labels:
team: '?*'