Skip to content

Commit e8c71d7

Browse files
oleksiytsybanOleksiy Tsybanjonathan-innis
authored andcommitted
chore: Helm: Add sidecarVolumeMounts and extraVolumeMounts volumes to all sidecars (aws#7608)
Co-authored-by: Oleksiy Tsyban <[email protected]> Co-authored-by: Jonathan Innis <[email protected]>
1 parent 71068a0 commit e8c71d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

charts/karpenter/templates/deployment.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,16 @@ spec:
183183
{{- toYaml . | nindent 12 }}
184184
{{- end }}
185185
{{- end }}
186-
{{- with .Values.controller.sidecarContainer }}
187-
{{- toYaml . | nindent 8 }}
188-
{{- end }}
189-
{{- if and (.Values.controller.sidecarContainer) (or .Values.controller.extraVolumeMounts .Values.controller.sidecarVolumeMounts) }}
186+
{{- range .Values.controller.sidecarContainer }}
187+
- {{- toYaml . | nindent 10 }}
188+
{{- if or $.Values.controller.extraVolumeMounts $.Values.controller.sidecarVolumeMounts }}
190189
volumeMounts:
191-
{{- with .Values.controller.extraVolumeMounts }}
190+
{{- with $.Values.controller.extraVolumeMounts }}
192191
{{- toYaml . | nindent 12 }}
193-
{{- end }}
194-
{{- with .Values.controller.sidecarVolumeMounts }}
192+
{{- end }}
193+
{{- with $.Values.controller.sidecarVolumeMounts }}
195194
{{- toYaml . | nindent 12 }}
195+
{{- end }}
196196
{{- end }}
197197
{{- end }}
198198
{{- with .Values.nodeSelector }}

0 commit comments

Comments
 (0)