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/autogen/autogen-deployments-statefulsets/chainsaw-test.yaml
Mariam Fahmy bbe2b838af
chore: add resource manifests in autogen tests (#12205)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2025-02-19 13:59:07 +00:00

28 lines
No EOL
699 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: autogen-statefulsets-statefulsets
spec:
steps:
- name: create policy
try:
- create:
file: policy.yaml
- sleep:
duration: 10s
- name: check autogen policy
try:
- assert:
file: check-autogen.yaml
- name: create good statefulset
try:
- create:
file: good-statefulset.yaml
- name: create bad statefulset
try:
- create:
file: bad-statefulset.yaml
expect:
- check:
($error != null): true