diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 833f0943..f5d1fba6 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -234,7 +234,7 @@ spec: failureThreshold: {{ .Values.coordinator.readinessProbe.failureThreshold | default 6 }} successThreshold: {{ .Values.coordinator.readinessProbe.successThreshold | default 1 }} lifecycle: - {{- toYaml .Values.coordinator.lifecycle | nindent 12 }} + {{- tpl (toYaml .Values.coordinator.lifecycle) . | nindent 12 }} resources: {{- toYaml .Values.coordinator.resources | nindent 12 }} {{- if $coordinatorJmx.exporter.enabled }} diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index 4c130431..a17caf8a 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -211,7 +211,7 @@ spec: {{- if .Values.worker.gracefulShutdown.enabled }} {{- fail "The `worker.lifecycle` configuration conflicts with `worker.gracefulShutdown`. Either disable `worker.gracefulShutdown` and apply the related configurations manually, or remove `worker.lifecycle`." }} {{- end }} - {{- toYaml .Values.worker.lifecycle | nindent 12 }} + {{- tpl (toYaml .Values.worker.lifecycle) . | nindent 12 }} {{- else if .Values.worker.gracefulShutdown.enabled }} preStop: exec: