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" appVersion: "v1.1.0"
description: A Helm chart for Argo Rollouts description: A Helm chart for Argo Rollouts
name: argo-rollouts name: argo-rollouts
version: 2.6.0 version: 2.7.0
icon: https://argoproj.github.io/argo-rollouts/assets/logo.png icon: https://argoproj.github.io/argo-rollouts/assets/logo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
maintainers: maintainers:
@ -11,4 +11,4 @@ maintainers:
- name: jessesuen - name: jessesuen
annotations: annotations:
artifacthub.io/changes: | 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 }} {{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
strategy: strategy:
type: Recreate type: Recreate
replicas: {{ .Values.controller.replicas }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }} {{- with .Values.podAnnotations }}
@ -36,6 +37,9 @@ spec:
{{- if not .Values.clusterInstall }} {{- if not .Values.clusterInstall }}
- --namespaced - --namespaced
{{- end }} {{- end }}
{{- if gt .Values.controller.replicas 1.0 }}
- --leader-elect
{{- end }}
{{- with .Values.controller.extraArgs }} {{- with .Values.controller.extraArgs }}
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}

View file

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