Document and values.yaml updates for leader election customization

Follow-up for #806
This commit is contained in:
Yusuke Kuoka
2021-09-14 08:23:55 +00:00
parent 4320e0e5e1
commit fe64850d3d
3 changed files with 15 additions and 9 deletions

View File

@@ -37,11 +37,11 @@ spec:
{{- $metricsHost := .Values.metrics.proxy.enabled | ternary "127.0.0.1" "0.0.0.0" }}
{{- $metricsPort := .Values.metrics.proxy.enabled | ternary "8080" .Values.metrics.port }}
- "--metrics-addr={{ $metricsHost }}:{{ $metricsPort }}"
{{- if .Values.controller.enableLeaderElection }}
{{- if .Values.enableLeaderElection }}
- "--enable-leader-election"
{{- end }}
{{- if .Values.controller.leaderElectionId }}
- "--leader-election-id={{ .Values.controller.leaderElectionId }}"
{{- if .Values.leaderElectionId }}
- "--leader-election-id={{ .Values.leaderElectionId }}"
{{- end }}
- "--sync-period={{ .Values.syncPeriod }}"
- "--docker-image={{ .Values.image.dindSidecarRepositoryAndTag }}"

View File

@@ -8,11 +8,10 @@ replicaCount: 1
syncPeriod: 10m
controller:
enableLeaderElection: true
# Specifies the controller id for leader election.
# Must be unique if more than one controller installed.
#leaderElectionId: "actions-runner-controller"
enableLeaderElection: true
# Specifies the controller id for leader election.
# Must be unique if more than one controller installed onto the same namespace.
#leaderElectionId: "actions-runner-controller"
# The controller tries its best not to repeat the duplicate GitHub API call
# within this duration.