Skip to content

Commit

Permalink
fix(charts): missing security context in BPDM init containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoprow committed Oct 25, 2024
1 parent 4f3dda4 commit 4ff8ebb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/bpdm/charts/bpdm-common/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ spec:
initContainers:
- name: startup-delay
image: busybox:1.28
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 10001
runAsGroup: 10001
capabilities:
drop:
- ALL
command: ['sh', '-c', "sleep {{ $.Values.startupDelaySeconds }}"]
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down

0 comments on commit 4ff8ebb

Please sign in to comment.