feat(argo-rollouts): Support HA mode for controller with multiple replicas (#1016)

Signed-off-by: Tung Huynh <31434093+huynhsontung@users.noreply.github.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Tung Huynh 2021-12-20 11:13:24 -08:00 committed by GitHub
parent 0ce72e3028
commit 0ee1099de9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -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"

View file

@ -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 }}

View file

@ -11,6 +11,7 @@ controller:
nodeSelector: {}
tolerations: []
affinity: {}
replicas: 1
image:
registry: quay.io
repository: argoproj/argo-rollouts