Skip to content

Commit

Permalink
Add securityContext to initContainers
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit-K committed Jan 3, 2025
1 parent 2f54ea4 commit 21d4929
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/polaris/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ spec:
imagePullPolicy: {{ tpl .Values.toolsImage.pullPolicy . }}
command: ["jar"]
args: ["-cf", "/eclipselink-config/conf.jar", "-C", "/secret", "persistence.xml"]
{{- if .Values.securityContext}}
securityContext:
{{- tpl (toYaml .Values.securityContext) . | nindent 12 }}
{{- end }}
volumeMounts:
- name: eclipselink-config-volume
mountPath: /eclipselink-config
Expand Down
4 changes: 4 additions & 0 deletions helm/polaris/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ spec:
imagePullPolicy: {{ tpl .Values.toolsImage.pullPolicy . }}
command: ["jar"]
args: ["-cf", "/eclipselink-config/conf.jar", "-C", "/secret", "persistence.xml"]
{{- if .Values.securityContext}}
securityContext:
{{- tpl (toYaml .Values.securityContext) . | nindent 12 }}
{{- end }}
volumeMounts:
- name: eclipselink-config-volume
mountPath: /eclipselink-config
Expand Down

0 comments on commit 21d4929

Please sign in to comment.