Skip to content

Commit 462d904

Browse files
authored
fix: Update controller deployment that supports Pod Security Admission (#168)
Signed-off-by: Rashed Kamal <[email protected]>
1 parent 6c21cfc commit 462d904

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.ko.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
defaultBaseImage: paketobuildpacks/run-jammy-tiny@sha256:d133c8551fbd5f2a4a3be5e5dab0e16e2f2c03af9fd1843b8f036976ef46f8ce
1+
defaultBaseImage: paketobuildpacks/run-jammy-tiny@sha256:2879c44347b5aba185d5a8306db4e87eb437edfedf085a3b442f5ad79cdc6a6a

config/manager/manager.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ spec:
3636
name: manager
3737
securityContext:
3838
allowPrivilegeEscalation: false
39+
runAsNonRoot: true
40+
seccompProfile:
41+
type: RuntimeDefault
42+
capabilities:
43+
drop:
44+
- ALL
3945
livenessProbe:
4046
httpGet:
4147
path: /healthz

dist/source-controller.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,12 @@ spec:
683683
memory: 20Mi
684684
securityContext:
685685
allowPrivilegeEscalation: false
686+
capabilities:
687+
drop:
688+
- ALL
689+
runAsNonRoot: true
690+
seccompProfile:
691+
type: RuntimeDefault
686692
volumeMounts:
687693
- mountPath: /tmp/k8s-webhook-server/serving-certs
688694
name: cert

0 commit comments

Comments
 (0)