Skip to content

Commit 03720c1

Browse files
lozbrownnineinchnick
authored andcommitted
Support templating in coordinator and worker lifecycle
1 parent 6fd7dd4 commit 03720c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/trino/templates/deployment-coordinator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ spec:
234234
failureThreshold: {{ .Values.coordinator.readinessProbe.failureThreshold | default 6 }}
235235
successThreshold: {{ .Values.coordinator.readinessProbe.successThreshold | default 1 }}
236236
lifecycle:
237-
{{- toYaml .Values.coordinator.lifecycle | nindent 12 }}
237+
{{- tpl (toYaml .Values.coordinator.lifecycle) . | nindent 12 }}
238238
resources:
239239
{{- toYaml .Values.coordinator.resources | nindent 12 }}
240240
{{- if $coordinatorJmx.exporter.enabled }}

charts/trino/templates/deployment-worker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ spec:
211211
{{- if .Values.worker.gracefulShutdown.enabled }}
212212
{{- fail "The `worker.lifecycle` configuration conflicts with `worker.gracefulShutdown`. Either disable `worker.gracefulShutdown` and apply the related configurations manually, or remove `worker.lifecycle`." }}
213213
{{- end }}
214-
{{- toYaml .Values.worker.lifecycle | nindent 12 }}
214+
{{- tpl (toYaml .Values.worker.lifecycle) . | nindent 12 }}
215215
{{- else if .Values.worker.gracefulShutdown.enabled }}
216216
preStop:
217217
exec:

0 commit comments

Comments
 (0)