mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-25 17:13:48 +00:00
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
24 lines
No EOL
568 B
YAML
Executable file
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 |