@@ -148,6 +148,7 @@ spec:
148148 {{- if .Values.deployment.extraEnvVars -}}
149149 {{ toYaml .Values.deployment.extraEnvVars | nindent 8 }}
150150 {{- end }}
151+ {{- if or .Values.aws.credentials.secretName .Values.deployment.extraVolumeMounts }}
151152 volumeMounts :
152153 {{- if .Values.aws.credentials.secretName }}
153154 - name : {{ .Values.aws.credentials.secretName }}
@@ -157,6 +158,7 @@ spec:
157158 {{- if .Values.deployment.extraVolumeMounts -}}
158159 {{ toYaml .Values.deployment.extraVolumeMounts | nindent 10 }}
159160 {{- end }}
161+ {{- end }}
160162 securityContext :
161163 allowPrivilegeEscalation : false
162164 privileged : false
@@ -195,15 +197,17 @@ spec:
195197 hostPID : false
196198 hostNetwork : {{ .Values.deployment.hostNetwork }}
197199 dnsPolicy : {{ .Values.deployment.dnsPolicy }}
200+ {{- if or .Values.aws.credentials.secretName .Values.deployment.extraVolumes }}
198201 volumes :
199202 {{- if .Values.aws.credentials.secretName }}
200203 - name : {{ .Values.aws.credentials.secretName }}
201204 secret :
202205 secretName : {{ .Values.aws.credentials.secretName }}
203206 {{- end }}
204- {{- if .Values.deployment.extraVolumes }}
205- {{ toYaml .Values.deployment.extraVolumes | indent 8}}
206- {{- end }}
207+ {{- if .Values.deployment.extraVolumes }}
208+ {{ toYaml .Values.deployment.extraVolumes | indent 8 }}
209+ {{- end }}
210+ {{- end }}
207211 {{- with .Values.deployment.strategy }}
208212 strategy : {{- toYaml . | nindent 4 }}
209213 {{- end }}
0 commit comments