mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
31 lines
687 B
YAML
Executable file
31 lines
687 B
YAML
Executable file
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
name: policy-exceptions-disabled
|
|
spec:
|
|
steps:
|
|
- name: create policy
|
|
use:
|
|
template: ../../../_step-templates/create-policy.yaml
|
|
with:
|
|
bindings:
|
|
- name: file
|
|
value: policy.yaml
|
|
- name: wait policy ready
|
|
use:
|
|
template: ../../../_step-templates/cluster-policy-ready.yaml
|
|
with:
|
|
bindings:
|
|
- name: name
|
|
value: require-app-label
|
|
- name: step-01
|
|
try:
|
|
- apply:
|
|
file: policy_exception.yaml
|
|
- name: step-02
|
|
try:
|
|
- apply:
|
|
expect:
|
|
- check:
|
|
($error != null): true
|
|
file: resource.yaml
|