1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-25 17:13:48 +00:00
kyverno/test/conformance/chainsaw/validating-policies/validation-rules/with-match-conditions/chainsaw-test.yaml
Mariam Fahmy 0625302c3d
fix: modify the client URL for finegrained validatingpolicies (#12171)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2025-02-14 21:35:41 +08:00

24 lines
No EOL
568 B
YAML
Executable file

# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: with-match-conditions
spec:
steps:
- name: create policy
try:
- create:
file: policy.yaml
- sleep:
duration: 10s
- name: create good pod
try:
- create:
file: good-pod.yaml
- name: create bad pod
try:
- create:
file: bad-pod.yaml
expect:
- check:
($error != null): true