Skip to content

Instantly share code, notes, and snippets.

@larkintuckerllc
Last active December 8, 2025 18:36
Show Gist options
  • Select an option

  • Save larkintuckerllc/da10782fec063321b261dc6eabc19d6b to your computer and use it in GitHub Desktop.

Select an option

Save larkintuckerllc/da10782fec063321b261dc6eabc19d6b to your computer and use it in GitHub Desktop.
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: namespace
spec:
namespace: default
steps:
- try:
- apply:
file: resources.yaml
- assert:
resource:
apiVersion: v1
kind: ConfigMap
metadata:
name: hello
namespace: test-namespace
- assert:
resource:
apiVersion: v1
kind: ConfigMap
metadata:
name: hello
namespace: test-namespace
(length(keys(data)) == `1`): true
(data.hello == 'world'): true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment