mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
17 lines
476 B
YAML
17 lines
476 B
YAML
|
apiVersion: chainsaw.kyverno.io/v1alpha1
|
||
|
kind: Test
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
name: gctx-validate-reference
|
||
|
spec:
|
||
|
steps:
|
||
|
- name: validation
|
||
|
try:
|
||
|
- script:
|
||
|
content: kubectl apply -f clusterpolicy.yaml
|
||
|
check:
|
||
|
($error != null): false
|
||
|
# This check ensures the contents of stderr are exactly as shown.
|
||
|
($stderr): |-
|
||
|
Warning: Global context entry name is not provided
|