Skip to content

Commit 2a15664

Browse files
authored
add: restart sts when valkeyConfig is changed (#108)
Signed-off-by: yoann_rt <65339843+yoannrt@users.noreply.github.com>
1 parent 2fd1f78 commit 2a15664

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

valkey/templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ spec:
4141
{{- toYaml . | nindent 8 }}
4242
{{- end }}
4343
checksum/initconfig: {{ include (print $.Template.BasePath "/init_config.yaml") . | sha256sum | trunc 32 | quote }}
44+
{{- if .Values.valkeyConfig }}
45+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum | trunc 32 | quote }}
46+
{{- end }}
4447
spec:
4548
{{- (include "valkey.imagePullSecrets" .) | nindent 6 }}
4649
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}

0 commit comments

Comments
 (0)