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

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