mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* enable matchconditions for reports Signed-off-by: ShutingZhao <shuting@nirmata.com> * update Signed-off-by: ShutingZhao <shuting@nirmata.com> * add chainsaw tests Signed-off-by: ShutingZhao <shuting@nirmata.com> * fix: linter issues Signed-off-by: ShutingZhao <shuting@nirmata.com> * chore: move files Signed-off-by: ShutingZhao <shuting@nirmata.com> --------- Signed-off-by: ShutingZhao <shuting@nirmata.com>
33 lines
584 B
YAML
Executable file
33 lines
584 B
YAML
Executable file
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: report-deletion
|
|
spec:
|
|
steps:
|
|
- name: step-00
|
|
try:
|
|
- apply:
|
|
file: ns.yaml
|
|
- assert:
|
|
file: ns.yaml
|
|
- name: step-01
|
|
try:
|
|
- apply:
|
|
file: pod.yaml
|
|
- assert:
|
|
file: pod.yaml
|
|
- name: step-02
|
|
try:
|
|
- apply:
|
|
file: policy.yaml
|
|
- assert:
|
|
file: policy-assert.yaml
|
|
- name: step-03
|
|
try:
|
|
- assert:
|
|
file: report-assert.yaml
|
|
- name: step-04
|
|
try:
|
|
- error:
|
|
file: report-error.yaml
|