diff --git a/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml b/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml index 4d2c9dca8..89d217f2a 100644 --- a/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml +++ b/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml @@ -60,6 +60,9 @@ spec: - name: "{{ template "pulsar.fullname" . }}-jwt-secret-init" image: "{{ .Values.images.toolset.repository }}:{{ .Values.images.toolset.tag }}" imagePullPolicy: {{ .Values.images.toolset.pullPolicy }} + {{- if .Values.toolset.securityContext }} + securityContext: {{- toYaml .Values.toolset.securityContext | nindent 10 }} + {{- end }} command: ["bash", "-c"] args: - | @@ -88,7 +91,4 @@ spec: - name: tmp mountPath: /tmp/binaries restartPolicy: Never - {{- if .Values.toolset.securityContext }} - securityContext: {{- toYaml .Values.toolset.securityContext | nindent 8 }} - {{- end }} {{- end }} diff --git a/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml b/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml index 74168229b..9a3818f60 100644 --- a/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml +++ b/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml @@ -60,6 +60,9 @@ spec: - name: "{{ template "pulsar.fullname" . }}-jwt-secret-init" image: "{{ .Values.images.toolset.repository }}:{{ .Values.images.toolset.tag }}" imagePullPolicy: {{ .Values.images.toolset.pullPolicy }} + {{- if .Values.toolset.securityContext }} + securityContext: {{- toYaml .Values.toolset.securityContext | nindent 10 }} + {{- end }} command: ["bash", "-c"] args: - | @@ -89,7 +92,4 @@ spec: - name: tmp mountPath: /tmp/binaries restartPolicy: Never - {{- if .Values.toolset.securityContext }} - securityContext: {{- toYaml .Values.toolset.securityContext | nindent 8 }} - {{- end }} {{- end }} \ No newline at end of file