Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Charts/tiled/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ spec:
{{- include "tiled.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- if .Values.rollOnConfigChange }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "tiled.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
Expand Down
5 changes: 5 additions & 0 deletions Charts/tiled/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ config:
writable_storage: "/storage/data"
init_if_not_exists: true

# Restart the tiled pods when their ConfigMap changes, by putting a checksum of
# it in a pod annotation. See
# https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
rollOnConfigChange: true

# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicaCount: 1

Expand Down
Loading