Skip to content

Commit

Permalink
chore: migrate aws kuttl tests to chainsaw (#822)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Dec 4, 2023
1 parent eb9c584 commit 78d2a9c
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: v1.28
version: v1.28.0
tests:
# - argo
- argo
- aws
- best-practices
- castai
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
version: v1.28.0
tests:
- argo
# - aws
- aws
# - best-practices
# - castai
- cert-manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: ClusterPolicy
metadata:
name: require-encryption-aws-loadbalancers
status:
ready: true
ready: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
creationTimestamp: null
name: require-encryption-aws-loadbalancers
spec:
steps:
- name: step-01
try:
- script:
content: |
sed 's/validationFailureAction: audit/validationFailureAction: Enforce/' ../require-encryption-aws-loadbalancers.yaml | kubectl create -f -
- assert:
file: chainsaw-step-01-assert-1.yaml
- name: step-02
try:
- apply:
expect:
- check:
($error != null): true
file: service-fail.yaml
- apply:
file: service-pass.yaml
- apply:
file: service-skip.yaml
- name: step-99
try:
- delete:
ref:
apiVersion: kyverno.io/v1
kind: ClusterPolicy
name: require-encryption-aws-loadbalancers
5 changes: 0 additions & 5 deletions aws/require-encryption-aws-loadbalancers/01-enforce.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions aws/require-encryption-aws-loadbalancers/02-manifests.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions aws/require-encryption-aws-loadbalancers/99-delete.yaml

This file was deleted.

0 comments on commit 78d2a9c

Please sign in to comment.