1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/test/conformance/chainsaw/webhook-configurations/cpol-match-conditions-pass/chainsaw-test.yaml
shuting 273a0a52f9
chore: add chainsaw tests for policy based webhook configuration (#9561)
* add chainsaw tests

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* add chainsaw tests

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* update policy

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* add delay

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* add debug steps

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* attempt fix

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* attempt fix

Signed-off-by: ShutingZhao <shuting@nirmata.com>

---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-01-31 16:44:01 +00:00

37 lines
690 B
YAML
Executable file

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: double-wildcard
spec:
steps:
- name: step-01
try:
- apply:
file: ns.yaml
- assert:
file: ns.yaml
- name: step-02
try:
- apply:
file: policy.yaml
- assert:
file: policy-assert.yaml
- sleep:
duration: 3s
- name: step-03
try:
- command:
args:
- get
- validatingwebhookconfigurations
- kyverno-resource-validating-webhook-cfg
- -o
- yaml
entrypoint: kubectl
- name: step-04
try:
- apply:
file: pod.yaml
- assert:
file: pod.yaml