--- apiVersion: chainsaw.kyverno.io/v1alpha1 kind: TestStep metadata: creationTimestamp: null name: deployment spec: timeouts: {} try: - apply: file: good-deployment.yaml - apply: expect: - check: ($error != null): true file: bad-deployment.yaml finally: - script: content: sleep 5 timeout: 10s