Skip to content

Commit

Permalink
Helm Chart - Enable Leader Election only if replica count greater tha…
Browse files Browse the repository at this point in the history
…n one (#463)

* Enable Leader Election only if replica count greater than one

* convert to int
  • Loading branch information
hartman17 authored Sep 30, 2024
1 parent 84660aa commit 2fdcbb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/k6-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ spec:
command:
- /manager
args:
{{- if gt (int .Values.manager.replicas) 1 }}
- --enable-leader-election
{{- end }}
{{- if .Values.authProxy.enabled }}
- --metrics-addr=127.0.0.1:8080
{{- end }}
Expand Down

0 comments on commit 2fdcbb9

Please sign in to comment.