Skip to content

Commit 6368e20

Browse files
chore(chart/supervisor): tpl-evaluate extraVolumes/extraVolumeMounts
Wraps the new extras with `tpl (toYaml .) $` so operators can embed Go-template directives in their values (e.g. `{{ include "trigger-v4.fullname" . }}` for ConfigMap/Secret names that vary by release). Backwards-compatible — `tpl` over a value without `{{ }}` is a no-op. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5769eba commit 6368e20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hosting/k8s/helm/templates/supervisor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ spec:
248248
mountPath: /home/node/shared
249249
{{- end }}
250250
{{- with .Values.supervisor.extraVolumeMounts }}
251-
{{- toYaml . | nindent 12 }}
251+
{{- tpl (toYaml .) $ | nindent 12 }}
252252
{{- end }}
253253
{{- end }}
254254
{{- with .Values.supervisor.securityContext }}
@@ -267,7 +267,7 @@ spec:
267267
{{- end }}
268268
{{- end }}
269269
{{- with .Values.supervisor.extraVolumes }}
270-
{{- toYaml . | nindent 8 }}
270+
{{- tpl (toYaml .) $ | nindent 8 }}
271271
{{- end }}
272272
{{- end }}
273273
{{- with .Values.supervisor.nodeSelector }}

0 commit comments

Comments
 (0)