mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
7113aa111a
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
24 lines
512 B
YAML
Executable file
24 lines
512 B
YAML
Executable file
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
name: not-rejected
|
|
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/policy-ready.yaml
|
|
with:
|
|
bindings:
|
|
- name: name
|
|
value: validate
|
|
- name: step-02
|
|
try:
|
|
- apply:
|
|
file: resource.yaml
|