From d1c17210ec330f0fd40b0c6fbaf3644cae83173e Mon Sep 17 00:00:00 2001 From: Wouter van Os Date: Thu, 29 Sep 2022 16:16:27 +0200 Subject: [PATCH] feat(helm): add replicas option in chart --- charts/redisoperator/templates/deployment.yaml | 2 +- charts/redisoperator/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/redisoperator/templates/deployment.yaml b/charts/redisoperator/templates/deployment.yaml index 927cc4556..72c314145 100644 --- a/charts/redisoperator/templates/deployment.yaml +++ b/charts/redisoperator/templates/deployment.yaml @@ -12,7 +12,7 @@ metadata: {{ toYaml .Values.annotations | indent 4 }} {{- end }} spec: - replicas: 1 + replicas: {{ .Values.replicas }} selector: matchLabels: {{- include "chart.selectorLabels" $data | nindent 6 }} diff --git a/charts/redisoperator/values.yaml b/charts/redisoperator/values.yaml index dcacaf38f..8851ff060 100644 --- a/charts/redisoperator/values.yaml +++ b/charts/redisoperator/values.yaml @@ -21,6 +21,8 @@ imageCredentials: updateStrategy: type: RollingUpdate +replicas: 1 + # A name in place of the chart name for `app:` labels. nameOverride: ""