Commit 8bce316
authored
Fix
Description of changes:
This fixes that setting and use of env variable had different names.
Without this fix leader election is always enabled in controller, but permissions might not be given.
So if leader election isn't enabled in the values you get constant messages like:
`E0911 06:54:26.919325 1 leaderelection.go:330] error retrieving resource lock alb-ingress/ack-acm.services.k8s.aws: leases.coordination.k8s.io "ack-acm.services.k8s.aws" is forbidden: User "system:serviceaccount:alb-ingress:ack-acm-controller" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "alb-ingress"`
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.ENABLE_LEADER_ELECTION env variable name (#466)1 parent 2f2b5e9 commit 8bce316
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments