Skip to content

Commit

Permalink
chore: Helm: Add sidecarVolumeMounts and extraVolumeMounts volumes to…
Browse files Browse the repository at this point in the history
… all sidecars (#7608)

Co-authored-by: Oleksiy Tsyban <oleksiy.tsyban@ringcentral.com>
Co-authored-by: Jonathan Innis <jonathan.innis.ji@gmail.com>
  • Loading branch information
3 people authored Feb 7, 2025
1 parent 52df823 commit 84da3db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions charts/karpenter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,16 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.controller.sidecarContainer }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if and (.Values.controller.sidecarContainer) (or .Values.controller.extraVolumeMounts .Values.controller.sidecarVolumeMounts) }}
{{- range .Values.controller.sidecarContainer }}
- {{- toYaml . | nindent 10 }}
{{- if or $.Values.controller.extraVolumeMounts $.Values.controller.sidecarVolumeMounts }}
volumeMounts:
{{- with .Values.controller.extraVolumeMounts }}
{{- with $.Values.controller.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.controller.sidecarVolumeMounts }}
{{- end }}
{{- with $.Values.controller.sidecarVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
Expand Down

0 comments on commit 84da3db

Please sign in to comment.