feat(helm): possibility to add `minReadySeconds` in helm chart for the stateful set

This commit is contained in:
Adrian Pauli 2023-05-14 16:32:15 +02:00
parent bd506b3034
commit f7832727e4
4 changed files with 12 additions and 0 deletions

View File

@ -32,6 +32,9 @@ spec:
{{- end }} {{- end }}
updateStrategy: updateStrategy:
type: RollingUpdate type: RollingUpdate
{{- if .Values.minReadySeconds }}
minReadySeconds: {{ .Values.minReadySeconds }}
{{- end }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
selector: selector:
matchLabels: matchLabels:

View File

@ -35,6 +35,9 @@ serviceAccount:
## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change. ## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change.
recreatePods: false recreatePods: false
## Sets the minReadySeconds parameter on the stateful set. This can be used to add delay between restart / updates between the single pods.
minReadySeconds:
clusterDomain: cluster.local clusterDomain: cluster.local
podAnnotations: {} podAnnotations: {}

View File

@ -32,6 +32,9 @@ spec:
{{- end }} {{- end }}
updateStrategy: updateStrategy:
type: RollingUpdate type: RollingUpdate
{{- if .Values.minReadySeconds }}
minReadySeconds: {{ .Values.minReadySeconds }}
{{- end }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
selector: selector:
matchLabels: matchLabels:

View File

@ -35,6 +35,9 @@ serviceAccount:
## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change. ## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change.
recreatePods: false recreatePods: false
## Sets the minReadySeconds parameter on the stateful set. This can be used to add delay between restart / updates between the single pods.
minReadySeconds:
clusterDomain: cluster.local clusterDomain: cluster.local
podAnnotations: {} podAnnotations: {}