1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/test/conformance/chainsaw/webhooks/unknown-kind/policy-4.yaml
Charles-Edouard Brétéché af14780f5c
chore: run tests with chainsaw (#8762)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-10-27 16:33:58 +00:00

20 lines
403 B
YAML

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