Skip to content

Commit

Permalink
fix: add checksums to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidabbm committed Sep 20, 2024
1 parent eda8cc8 commit e5a876b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions charts/lightdash/templates/backendDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ spec:
app.kubernetes.io/component: backend
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 10 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
labels:
{{- include "lightdash.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: backend
Expand Down
8 changes: 5 additions & 3 deletions charts/lightdash/templates/workerDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ spec:
app.kubernetes.io/component: worker
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 10 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
labels:
{{- include "lightdash.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: worker
Expand Down

0 comments on commit e5a876b

Please sign in to comment.