1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 18:38:40 +00:00
kyverno/test/conformance/chainsaw/validating-policies/context/imagereference/chainsaw-test.yaml

25 lines
643 B
YAML
Raw Normal View History

# 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: image-data
spec:
steps:
- name: create policy
try:
- create:
file: policy.yaml
- assert:
file: policy-assert.yaml
- name: create deployment
try:
- create:
file: deployment.yaml
- name: create bad deployment
try:
- apply:
expect:
- check:
($error != null): true
file: bad-deployment.yaml