From f7832727e407fca3964722f21618425f3024a202 Mon Sep 17 00:00:00 2001 From: Adrian Pauli Date: Sun, 14 May 2023 16:32:15 +0200 Subject: [PATCH] feat(helm): possibility to add `minReadySeconds` in helm chart for the stateful set --- deploy/charts/emqx-enterprise/templates/StatefulSet.yaml | 3 +++ deploy/charts/emqx-enterprise/values.yaml | 3 +++ deploy/charts/emqx/templates/StatefulSet.yaml | 3 +++ deploy/charts/emqx/values.yaml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml b/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml index 3e9e39f2c..d942e8eea 100644 --- a/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml +++ b/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml @@ -32,6 +32,9 @@ spec: {{- end }} updateStrategy: type: RollingUpdate + {{- if .Values.minReadySeconds }} + minReadySeconds: {{ .Values.minReadySeconds }} + {{- end }} replicas: {{ .Values.replicaCount }} selector: matchLabels: diff --git a/deploy/charts/emqx-enterprise/values.yaml b/deploy/charts/emqx-enterprise/values.yaml index 71569b9a3..74a6e60df 100644 --- a/deploy/charts/emqx-enterprise/values.yaml +++ b/deploy/charts/emqx-enterprise/values.yaml @@ -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. 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 podAnnotations: {} diff --git a/deploy/charts/emqx/templates/StatefulSet.yaml b/deploy/charts/emqx/templates/StatefulSet.yaml index 3e9e39f2c..d942e8eea 100644 --- a/deploy/charts/emqx/templates/StatefulSet.yaml +++ b/deploy/charts/emqx/templates/StatefulSet.yaml @@ -32,6 +32,9 @@ spec: {{- end }} updateStrategy: type: RollingUpdate + {{- if .Values.minReadySeconds }} + minReadySeconds: {{ .Values.minReadySeconds }} + {{- end }} replicas: {{ .Values.replicaCount }} selector: matchLabels: diff --git a/deploy/charts/emqx/values.yaml b/deploy/charts/emqx/values.yaml index f7c6483fe..ecc4e155a 100644 --- a/deploy/charts/emqx/values.yaml +++ b/deploy/charts/emqx/values.yaml @@ -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. 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 podAnnotations: {}