fix(k8s): add runAsNonRoot:false to fetch-binary initContainers

Pod-level runAsNonRoot:true conflicts with initContainer runAsUser:0.
Kubernetes rejects the container. Add explicit override so the
initContainer can still run as root to fetch binaries from S3.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-03-02 00:06:53 +01:00
parent bbae6b6450
commit 303e5bd830
10 changed files with 10 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -41,6 +41,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -41,6 +41,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -41,6 +41,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -49,6 +49,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -84,6 +84,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -41,6 +41,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -48,6 +48,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -41,6 +41,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args:

View File

@@ -41,6 +41,7 @@ spec:
- name: fetch-binary
securityContext:
runAsUser: 0
runAsNonRoot: false
image: rg.fr-par.scw.cloud/foxhunt-ci/foxhunt-runtime:latest
command: ["/bin/sh", "-c"]
args: