mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
* skip invalid policy files Signed-off-by: Jim Bugwadia <jim@nirmata.com> * fix file-system policy loader Signed-off-by: Jim Bugwadia <jim@nirmata.com> * propagate policy schema error Signed-off-by: Jim Bugwadia <jim@nirmata.com> --------- Signed-off-by: Jim Bugwadia <jim@nirmata.com>
27 lines
No EOL
561 B
YAML
27 lines
No EOL
561 B
YAML
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: add-network-policy
|
|
spec:
|
|
steps:
|
|
- name: step-01
|
|
try:
|
|
- apply:
|
|
file: old-resource.yaml
|
|
- name: step-02
|
|
try:
|
|
- apply:
|
|
file: ../add-network-policy.yaml
|
|
- assert:
|
|
file: policy-ready.yaml
|
|
- name: step-03
|
|
try:
|
|
- apply:
|
|
file: ../.kyverno-test/resource.yaml
|
|
- name: step-04
|
|
try:
|
|
- assert:
|
|
file: ../.kyverno-test/generatedResource.yaml
|
|
- error:
|
|
file: notGeneratedResource.yaml |