mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-16 12:40:43 +00:00
20 lines
372 B
YAML
20 lines
372 B
YAML
|
---
|
||
|
apiVersion: chainsaw.kyverno.io/v1alpha1
|
||
|
kind: TestStep
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
name: configmap
|
||
|
spec:
|
||
|
timeouts: {}
|
||
|
try:
|
||
|
- apply:
|
||
|
file: configmap-allowed.yaml
|
||
|
- apply:
|
||
|
check:
|
||
|
(error != null): true
|
||
|
file: configmap-rejected.yaml
|
||
|
- assert:
|
||
|
file: configmap-allowed.yaml
|
||
|
- error:
|
||
|
file: configmap-rejected.yaml
|