File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ {{ if .Values.controller.reportIngressStatus.enableLeaderElection }}
2
+ apiVersion : coordination.k8s.io/v1
3
+ kind : Lease
4
+ metadata :
5
+ name : {{ include "nginx-ingress.leaderElectionName" . }}
6
+ namespace : {{ .Release.Namespace }}
7
+ labels :
8
+ {{- include "nginx-ingress.labels" . | nindent 4 }}
9
+ {{- if .Values.controller.reportIngressStatus.annotations }}
10
+ annotations
11
+ {{ toYaml .Values.controller.reportIngressStatus.annotations | indent 4 }}
12
+ {{- end }}
13
+ {{- end }}
Original file line number Diff line number Diff line change 43
43
resources :
44
44
- leases
45
45
resourceNames :
46
- - {{ .Values.controller.reportIngressStatus.leaderElectionLockName }}
46
+ - {{ include "nginx-ingress.leaderElectionName" . }}
47
47
verbs :
48
48
- get
49
49
- update
Original file line number Diff line number Diff line change @@ -496,7 +496,8 @@ controller:
496
496
enableLeaderElection : true
497
497
498
498
# # Specifies the name to be used as the lock for leader election. controller.reportIngressStatus.enableLeaderElection must be set to true.
499
- leaderElectionLockName : " nginx-ingress-leader"
499
+ # # The default is autogenerated.
500
+ leaderElectionLockName : " "
500
501
501
502
# # The annotations of the leader election configmap.
502
503
annotations : {}
You can’t perform that action at this time.
0 commit comments