mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
k8s-ci-robot
parent
d5b69266f4
commit
64a5308dc7
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user