1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-16 12:40:43 +00:00
kyverno/test/conformance/chainsaw/exceptions/allows-rejects-creation/03-configmap.yaml

21 lines
391 B
YAML
Raw Normal View History

---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: configmap
spec:
timeouts: {}
try:
- apply:
file: configmap-allowed.yaml
- apply:
expect:
- check:
($error != null): true
file: configmap-rejected.yaml
- assert:
file: configmap-allowed.yaml
- error:
file: configmap-rejected.yaml