Skip to content

Commit

Permalink
remove missing image and fix failing tests (#1173)
Browse files Browse the repository at this point in the history
* remove missing image

Signed-off-by: Jim Bugwadia <[email protected]>

* fix tests

Signed-off-by: Jim Bugwadia <[email protected]>

---------

Signed-off-by: Jim Bugwadia <[email protected]>
  • Loading branch information
JimBugwadia authored Oct 7, 2024
1 parent 72901e6 commit 72247b8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 0 additions & 2 deletions other/require-base-image/.chainsaw-test/pod-good.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ metadata:
namespace: require-base-image-ns
spec:
containers:
- name: myapp
image: ghcr.io/samj1912/myapp:latest
- name: kyverno
image: ghcr.io/kyverno/kyverno:latest
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ spec:
jobTemplate:
spec:
template:
metadata:
spec:
containers:
- name: myapp
image: ghcr.io/samj1912/myapp:latest
- name: kyverno
image: ghcr.io/kyverno/kyverno:latest
restartPolicy: OnFailure
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
containers:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: true
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -53,6 +56,8 @@ spec:
containers:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: true
- name: container02
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
Expand Down Expand Up @@ -80,7 +85,7 @@ spec:
- name: container02
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: false
allowPrivilegeEscalation: true
---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -99,6 +104,8 @@ spec:
initContainers:
- name: initcontainer01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: true
containers:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
Expand Down Expand Up @@ -129,8 +136,6 @@ spec:
containers:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: false
---
apiVersion: batch/v1
kind: CronJob
Expand All @@ -146,6 +151,9 @@ spec:
containers:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: true
---
apiVersion: batch/v1
kind: CronJob
Expand Down Expand Up @@ -178,10 +186,12 @@ spec:
containers:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: true
- name: container02
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: false
allowPrivilegeEscalation: true
---
apiVersion: batch/v1
kind: CronJob
Expand Down Expand Up @@ -222,7 +232,7 @@ spec:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: false
allowPrivilegeEscalation: true
---
apiVersion: batch/v1
kind: CronJob
Expand All @@ -246,5 +256,5 @@ spec:
- name: container01
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: false
allowPrivilegeEscalation: true
---

0 comments on commit 72247b8

Please sign in to comment.