diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 199711ae..8736a76b 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -20,10 +20,13 @@ spec: component: coordinator template: metadata: - {{- if .Values.coordinator.annotations }} annotations: + checksum/catalog-config: {{ include (print $.Template.BasePath "/configmap-catalog.yaml") . | sha256sum }} + checksum/coordinator-config: {{ include (print $.Template.BasePath "/configmap-coordinator.yaml") . | sha256sum }} + {{- if .Values.coordinator.annotations }} {{- tpl (toYaml .Values.coordinator.annotations) . | nindent 8 }} {{- end }} + labels: app: {{ template "trino.name" . }} release: {{ .Release.Name }} diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index a14b4b54..a745afac 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -24,8 +24,9 @@ spec: component: worker template: metadata: - {{- if .Values.worker.annotations }} annotations: + checksum/worker-config: {{ include (print $.Template.BasePath "/configmap-worker.yaml") . | sha256sum }} + {{- if .Values.worker.annotations }} {{- tpl (toYaml .Values.worker.annotations) . | nindent 8 }} {{- end }} labels: