diff --git a/charts/argo-rollouts/Chart.yaml b/charts/argo-rollouts/Chart.yaml index 707b627a..12d9a3eb 100644 --- a/charts/argo-rollouts/Chart.yaml +++ b/charts/argo-rollouts/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "v1.1.0" description: A Helm chart for Argo Rollouts name: argo-rollouts -version: 2.6.0 +version: 2.7.0 icon: https://argoproj.github.io/argo-rollouts/assets/logo.png home: https://github.com/argoproj/argo-helm maintainers: @@ -11,4 +11,4 @@ maintainers: - name: jessesuen annotations: artifacthub.io/changes: | - - "[Added]: Ability to set the type of Service on the dashboard Service" + - "[Added]: Support high availability (HA) mode for controller with multiple replicas" diff --git a/charts/argo-rollouts/templates/controller/deployment.yaml b/charts/argo-rollouts/templates/controller/deployment.yaml index fc359d42..b1f80534 100644 --- a/charts/argo-rollouts/templates/controller/deployment.yaml +++ b/charts/argo-rollouts/templates/controller/deployment.yaml @@ -12,6 +12,7 @@ spec: {{- include "argo-rollouts.selectorLabels" . | nindent 6 }} strategy: type: Recreate + replicas: {{ .Values.controller.replicas }} template: metadata: {{- with .Values.podAnnotations }} @@ -36,6 +37,9 @@ spec: {{- if not .Values.clusterInstall }} - --namespaced {{- end }} + {{- if gt .Values.controller.replicas 1.0 }} + - --leader-elect + {{- end }} {{- with .Values.controller.extraArgs }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/argo-rollouts/values.yaml b/charts/argo-rollouts/values.yaml index a598ad05..8988bbdb 100644 --- a/charts/argo-rollouts/values.yaml +++ b/charts/argo-rollouts/values.yaml @@ -11,6 +11,7 @@ controller: nodeSelector: {} tolerations: [] affinity: {} + replicas: 1 image: registry: quay.io repository: argoproj/argo-rollouts