mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-27 10:02:47 +00:00
* fix: image parse func and add chainsaw tests Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> * fix: linter Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com> --------- Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
24 lines
631 B
YAML
Executable file
24 lines
631 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: image-data
|
|
spec:
|
|
steps:
|
|
- name: create policy
|
|
try:
|
|
- create:
|
|
file: policy.yaml
|
|
- sleep:
|
|
duration: 10s
|
|
- name: create deployment
|
|
try:
|
|
- create:
|
|
file: deployment.yaml
|
|
- name: create bad deployment
|
|
try:
|
|
- apply:
|
|
expect:
|
|
- check:
|
|
($error != null): true
|
|
file: bad-deployment.yaml
|