Skip to content

Commit

Permalink
Add securityContext for restoreSessions
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Jan 3, 2025
1 parent 2055ff0 commit 4e0d5ea
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ spec:
{{- if and .Values.spec.addon.jobTemplate .Values.spec.addon.jobTemplate.securityContext }}
jobTemplate:
spec:
nodeSelector:
kubernetes.io/os: linux
securityContext:
runAsUser: {{ .Values.spec.addon.jobTemplate.securityContext }}
runAsGroup: 0
containerRuntimeSettings:
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: {{ .Values.spec.addon.jobTemplate.securityContext }}
seccompProfile:
type: RuntimeDefault
{{- end }}

0 comments on commit 4e0d5ea

Please sign in to comment.