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:
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
|
||||
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:
|
||||
|
|
|
@ -4,7 +4,6 @@ metadata:
|
|||
name: congiguration
|
||||
spec:
|
||||
parallel: 1
|
||||
timeout: 1m30s
|
||||
fullName: true
|
||||
failFast: true
|
||||
excludeTestRegex: '_.+'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue