1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/test/conformance/chainsaw/policy-validation/policy/assert/ok.yaml

21 lines
355 B
YAML
Raw Normal View History

apiVersion: kyverno.io/v1
kind: Policy
metadata:
name: ok
spec:
rules:
- name: test
match:
all:
- resources:
kinds:
- Pod
validate:
validationFailureAction: Enforce
message: "pod must have an env label"
assert:
object:
metadata:
labels:
env: {}