Skip to content

Commit

Permalink
feat(helm): add securityContexts to jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Zemtsov Vladimir <[email protected]>
  • Loading branch information
Zemtsov Vladimir authored and prometherion committed Feb 14, 2023
1 parent 770ad22 commit fe4954f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/capsule/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sources:

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.3.3
version: 0.3.4

# This is the version number of the application being deployed.
# This version number should be incremented each time you make changes to the application.
Expand Down
6 changes: 6 additions & 0 deletions charts/capsule/templates/post-install-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
serviceAccountName: {{ include "capsule.serviceAccountName" . }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/capsule/templates/pre-delete-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
serviceAccountName: {{ include "capsule.serviceAccountName" . }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}

0 comments on commit fe4954f

Please sign in to comment.