Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
  • Loading branch information
JimBugwadia committed Aug 28, 2024
1 parent 891c47d commit 0fb5a34
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions other/label-nodes-cri/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
try:
- script:
content: |
kubectl get configmap kyverno -n kyverno -o yaml | sed 's/\[Node\/\*,\*,\*\]//g' - | sed 's/\[Node,\*,\*\]//g' - | kubectl apply -f -
kubectl get configmap kyverno -n kyverno -o yaml | sed 's/\[Node\/\*,\*,\*\]//g' | sed 's/\[Node,\*,\*\]//g' | kubectl apply -f -
- sleep:
duration: 5s
- name: step-02
Expand All @@ -33,7 +33,7 @@ spec:
try:
- script:
content: |
kubectl get configmap -n kyverno kyverno -o yaml | sed 's/\[APIService,\*,\*\]/\[Node,\*,\*\] \[Node\/\*,\*,\*\] \[APIService,\*,\*\]/g' - | kubectl apply -f -
kubectl get configmap -n kyverno kyverno -o yaml | sed 's/\[APIService,\*,\*\]/\[Node,\*,\*\] \[Node\/\*,\*,\*\] \[APIService,\*,\*\]/g' | kubectl apply -f -
- script:
content: |
node=$(kubectl get nodes --no-headers | awk '{print $1}' | head -n 1);
Expand Down
2 changes: 1 addition & 1 deletion other/replace-image-registry/.chainsaw-test/pods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
image: ghcr.io/busybox:1.35
- name: busybox02
image: docker.io/busybox:1.35
---
Expand Down
10 changes: 5 additions & 5 deletions other/require-imagepullsecrets/.chainsaw-test/pod-bad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ metadata:
spec:
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
image: busybox
---
apiVersion: v1
kind: Pod
metadata:
name: badpod02
spec:
containers:
- name: nginx
- name: test
image: ghcr.io/kyverno/test-verify-image:unsigned
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
image: docker.io/library/busybox:latest
---
apiVersion: v1
kind: Pod
Expand All @@ -25,9 +25,9 @@ metadata:
spec:
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
image: docker.io/library/busybox:latest
- name: nginx
image: ghcr.io/kyverno/test-verify-image:unsigned
image: test
---
apiVersion: v1
kind: Pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
image: docker.io/library/busybox:latest
- name: nginx
image: ghcr.io/kyverno/test-verify-image:unsigned
---
Expand All @@ -33,7 +33,7 @@ spec:
spec:
containers:
- name: nginx
image: ghcr.io/kyverno/test-verify-image:unsigned
image: docker.io/library/busybox:latest
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
restartPolicy: OnFailure
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ spec:
spec:
containers:
- name: busybox
image: index.docker.io/library/busybox@sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
image: ghcr.io/kyverno/test-busybox@sha256:859d41e4316c182cb559f9ae3c5ffcac8602ee1179794a1707c06cd092a008d3
- name: busybox02
image: index.docker.io/library/busybox@sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
image: ghcr.io/kyverno/test-busybox@sha256:859d41e4316c182cb559f9ae3c5ffcac8602ee1179794a1707c06cd092a008d3
---
apiVersion: batch/v1
kind: CronJob
Expand All @@ -33,7 +33,7 @@ spec:
spec:
containers:
- name: busybox
image: index.docker.io/library/busybox@sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
image: ghcr.io/kyverno/test-busybox@sha256:859d41e4316c182cb559f9ae3c5ffcac8602ee1179794a1707c06cd092a008d3
- name: busybox02
image: index.docker.io/library/busybox@sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
image: ghcr.io/kyverno/test-busybox@sha256:859d41e4316c182cb559f9ae3c5ffcac8602ee1179794a1707c06cd092a008d3
restartPolicy: OnFailure
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
containers:
- name: busybox
image: index.docker.io/library/busybox@sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
image: ghcr.io/kyverno/test-busybox@sha256:859d41e4316c182cb559f9ae3c5ffcac8602ee1179794a1707c06cd092a008d3
---
apiVersion: v1
kind: Pod
Expand All @@ -14,6 +14,6 @@ metadata:
spec:
containers:
- name: busybox
image: index.docker.io/library/busybox@sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
image: ghcr.io/kyverno/test-busybox@sha256:859d41e4316c182cb559f9ae3c5ffcac8602ee1179794a1707c06cd092a008d3
- name: busybox02
image: index.docker.io/library/busybox@sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
image: ghcr.io/kyverno/test-busybox@sha256:859d41e4316c182cb559f9ae3c5ffcac8602ee1179794a1707c06cd092a008d3

0 comments on commit 0fb5a34

Please sign in to comment.