feat(helm): add securityContexts to jobs

Signed-off-by: Zemtsov Vladimir <zemtsov.v@mail366.com>
This commit is contained in:
Zemtsov Vladimir
2023-02-14 17:49:01 +02:00
committed by Dario Tranchitella
parent 770ad22170
commit fe4954f39e
3 changed files with 13 additions and 1 deletions

View File

@@ -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.

View File

@@ -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 }}

View File

@@ -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 }}