Skip to content

Commit

Permalink
Add configmap checksum on deployments (#127)
Browse files Browse the repository at this point in the history
* add configmap checksum on deployments

* update for generating default annotation on worker template

* Run pre-commit to format committed files
  • Loading branch information
DinGo4DEV authored May 23, 2024
1 parent 75efc4c commit 2d372b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion charts/trino/templates/deployment-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion charts/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2d372b5

Please sign in to comment.