feat(argo-workflows): Disable leader election on single repl controllers (#2565)
Signed-off-by: Tim Collins <tim@thecollins.team> Co-authored-by: Aikawa <yu.croco@gmail.com>
This commit is contained in:
parent
d0647e4a50
commit
29e341091c
2 changed files with 7 additions and 3 deletions
|
@ -3,7 +3,7 @@ appVersion: v3.5.5
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.40.12
|
version: 0.40.13
|
||||||
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
@ -16,5 +16,5 @@ annotations:
|
||||||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: added
|
||||||
description: Bump argo-workflows to v3.5.5
|
description: Disable leader election if only 1 repl of the Workflow Controller
|
||||||
|
|
|
@ -89,6 +89,10 @@ spec:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
fieldPath: metadata.name
|
fieldPath: metadata.name
|
||||||
|
{{- if eq (int .Values.controller.replicas) 1 }}
|
||||||
|
- name: LEADER_ELECTION_DISABLE
|
||||||
|
value: "true"
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.controller.extraEnv }}
|
{{- with .Values.controller.extraEnv }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue