[stable/redis] Rollout new pods on configuration changes (#7619)

* Rename secrets.yaml to secret.yaml

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Perform rolling update when configuration changes

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Interpret redis.conf contents as string

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Bump chart version

Signed-off-by: Jacob LeGrone <git@jacob.work>
This commit is contained in:
Jacob LeGrone
2018-09-08 13:35:12 -07:00
committed by k8s-ci-robot
parent d5b69266f4
commit 64a5308dc7
6 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: redis
version: 3.8.1
version: 3.9.0
appVersion: 4.0.11
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
keywords:
+1 -1
View File
@@ -10,5 +10,5 @@ metadata:
name: {{ template "redis.fullname" . }}
data:
redis.conf: |-
{{ toYaml .Values.configmap | indent 4 }}
{{ .Values.configmap | indent 4 }}
{{- end }}
@@ -25,8 +25,10 @@ spec:
{{- if .Values.master.podLabels }}
{{ toYaml .Values.master.podLabels | indent 8 }}
{{- end }}
{{- if .Values.master.podAnnotations }}
annotations:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- if .Values.master.podAnnotations }}
{{ toYaml .Values.master.podAnnotations | indent 8 }}
{{- end }}
spec:
@@ -22,8 +22,10 @@ spec:
{{- if (.Values.slave.podLabels | default .Values.master.podLabels) }}
{{ toYaml (.Values.slave.podLabels | default .Values.master.podLabels) | indent 8 }}
{{- end }}
{{- if (.Values.slave.podAnnotations | default .Values.master.podAnnotations) }}
annotations:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- if (.Values.slave.podAnnotations | default .Values.master.podAnnotations) }}
{{ toYaml (.Values.slave.podAnnotations | default .Values.master.podAnnotations) | indent 8 }}
{{- end }}
spec:
+1 -1
View File
@@ -203,7 +203,7 @@ master:
## Update strategy, can be set to RollingUpdate or onDelete by default.
## https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
statefulset:
updateStrategy: OnDelete
updateStrategy: RollingUpdate
## Partition update strategy
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
# rollingUpdatePartition: