Skip to content

Commit

Permalink
Migrate the kuttl test for workload securty policy to chainsaw
Browse files Browse the repository at this point in the history
Signed-off-by: nsathyaseelan <[email protected]>
  • Loading branch information
nsathyaseelan committed Feb 21, 2024
1 parent ead7213 commit 0ed839d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ spec:
name: restrict-image-registries
- script:
content: |
sed 's/validationFailureAction: Audit/validationFailureAction: Enforce/' ../restrict_image_registries.yaml | kubectl apply -f -
sed 's/validationFailureAction: Audit/validationFailureAction: Enforce/' ../../pols/restrict_image_registries.yaml | kubectl apply -f -
- assert:
file: enforce-policy-assert.yaml
- apply:
file: good-resource.yaml
- script:
content: |
if kubectl debug -it goodpod02-registry --image=busybox:1.35 --target=k8s-nginx -n ir-pods-namespace; then exit 1; else exit 0; fi;
Expand Down

0 comments on commit 0ed839d

Please sign in to comment.