Skip to content

Commit

Permalink
Force pod restart on config changes (#13056)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann-J authored Feb 13, 2021
1 parent 956f276 commit acca3a4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions helm/superset/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ spec:
release: {{ .Release.Name }}
template:
metadata:
{{ if .Values.supersetNode.forceReload }}
annotations:
# Optionally force the thing to reload
# Force reload on config changes
checksum/superset_config.py: {{ include "superset-config" . | sha256sum }}
checksum/superset_init.sh: {{ tpl .Values.init.initscript . | sha256sum }}
checksum/superset_bootstrap.sh: {{ include "superset-bootstrap" . | sha256sum }}
checksum/connections: {{ .Values.supersetNode.connections | toYaml | sha256sum }}
checksum/extraConfigs: {{ .Values.extraConfigs | toYaml | sha256sum }}
{{- if .Values.supersetNode.forceReload }}
# Optionally force the thing to reload unconditionally
force-reload: {{ randAlphaNum 5 | quote }}
{{ end }}
{{- end }}
labels:
app: {{ template "superset.name" . }}
release: {{ .Release.Name }}
Expand Down

0 comments on commit acca3a4

Please sign in to comment.