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:
parent
646d7ae3bc
commit
dcea5b084d
18 changed files with 71 additions and 74 deletions
7
.github/workflows/conformance.yaml
vendored
7
.github/workflows/conformance.yaml
vendored
|
@ -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:
|
||||||
|
|
|
@ -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: '_.+'
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue