1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +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 - name: Wait for kyverno ready
uses: ./.github/actions/kyverno-wait-ready uses: ./.github/actions/kyverno-wait-ready
- name: Install Chainsaw - name: Install Chainsaw
shell: bash uses: kyverno/chainsaw/.github/actions/install@704abd5ea8fd74189e1192733a879a00a7d527f5 # main
run: | with:
set -e release: v0.0.6-alpha.1
go install github.com/kyverno/chainsaw@ffa5508c1d0fbba24d70a3a51ef777392a9b32b6
- name: Test with Chainsaw - name: Test with Chainsaw
shell: bash shell: bash
env: env:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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