1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 02:18:15 +00:00

chore: install chainsaw with gh action (#8948)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-11-19 00:20:46 +01:00 committed by GitHub
parent 646d7ae3bc
commit dcea5b084d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 71 additions and 74 deletions

View file

@ -234,10 +234,9 @@ jobs:
- name: Wait for kyverno ready
uses: ./.github/actions/kyverno-wait-ready
- name: Install Chainsaw
shell: bash
run: |
set -e
go install github.com/kyverno/chainsaw@ffa5508c1d0fbba24d70a3a51ef777392a9b32b6
uses: kyverno/chainsaw/.github/actions/install@704abd5ea8fd74189e1192733a879a00a7d527f5 # main
with:
release: v0.0.6-alpha.1
- name: Test with Chainsaw
shell: bash
env:

View file

@ -4,7 +4,6 @@ metadata:
name: congiguration
spec:
parallel: 1
timeout: 1m30s
fullName: true
failFast: true
excludeTestRegex: '_.+'

View file

@ -1,11 +1,10 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: policy
spec:
apply:
- file: policy.yaml
assert:
- file: policy-assert.yaml
try:
- apply:
file: policy.yaml
- assert:
file: policy-assert.yaml

View file

@ -1,9 +1,8 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: webhooks
spec:
assert:
- file: webhooks.yaml
try:
- assert:
file: webhooks.yaml

View file

@ -1,11 +1,10 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: policy
spec:
apply:
- file: policy.yaml
assert:
- file: policy-assert.yaml
try:
- apply:
file: policy.yaml
- assert:
file: policy-assert.yaml

View file

@ -1,9 +1,8 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: webhooks
spec:
assert:
- file: webhooks.yaml
try:
- assert:
file: webhooks.yaml

View file

@ -1,9 +1,8 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: webhooks
spec:
assert:
- file: webhooks.yaml
try:
- assert:
file: webhooks.yaml

View file

@ -1,11 +1,10 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: policy
spec:
apply:
- file: policy.yaml
assert:
- file: policy-assert.yaml
try:
- apply:
file: policy.yaml
- assert:
file: policy-assert.yaml

View file

@ -1,9 +1,8 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: webhooks
spec:
assert:
- file: webhooks.yaml
try:
- assert:
file: webhooks.yaml

View file

@ -1,11 +1,10 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: policy
spec:
apply:
- file: policy.yaml
assert:
- file: policy-assert.yaml
try:
- apply:
file: policy.yaml
- assert:
file: policy-assert.yaml

View file

@ -1,9 +1,8 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: webhooks
spec:
assert:
- file: webhooks.yaml
try:
- assert:
file: webhooks.yaml

View file

@ -3,6 +3,8 @@ kind: TestStep
metadata:
name: policy
spec:
apply:
- file: policy.yaml
shouldFail: true
try:
- apply:
file: policy.yaml
check:
(error == null): false

View file

@ -3,6 +3,8 @@ kind: TestStep
metadata:
name: unknown-kind
spec:
apply:
- file: policy-1.yaml
shouldFail: true
try:
- apply:
file: policy-1.yaml
check:
(error == null): false

View file

@ -3,6 +3,8 @@ kind: TestStep
metadata:
name: unknown-kind-subresource
spec:
apply:
- file: policy-2.yaml
shouldFail: true
try:
- apply:
file: policy-2.yaml
check:
(error == null): false

View file

@ -3,6 +3,8 @@ kind: TestStep
metadata:
name: wrong-version
spec:
apply:
- file: policy-3.yaml
shouldFail: true
try:
- apply:
file: policy-3.yaml
check:
(error == null): false

View file

@ -3,6 +3,8 @@ kind: TestStep
metadata:
name: unknown-subresource
spec:
apply:
- file: policy-4.yaml
shouldFail: true
try:
- apply:
file: policy-4.yaml
check:
(error == null): false

View file

@ -1,11 +1,10 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: policy
spec:
apply:
- file: policy.yaml
assert:
- file: policy-assert.yaml
try:
- apply:
file: policy.yaml
- assert:
file: policy-assert.yaml

View file

@ -1,9 +1,8 @@
---
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: TestStep
metadata:
creationTimestamp: null
name: webhooks
spec:
assert:
- file: webhooks.yaml
try:
- assert:
file: webhooks.yaml