Skip to content

Commit 2b46d30

Browse files
committed
Tiny improvements
1 parent d61015a commit 2b46d30

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

templates/cmd/controller/main.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func main() {
9292
Host: host,
9393
MetricsBindAddress: ackCfg.MetricsAddr,
9494
LeaderElection: ackCfg.EnableLeaderElection,
95-
LeaderElectionID: awsServiceAPIGroup,
95+
LeaderElectionID: "ack-"+awsServiceAPIGroup,
9696
Namespace: ackCfg.WatchNamespace,
9797
LeaderElectionNamespace: ackCfg.LeaderElectionNamespace,
9898
})

templates/helm/values.yaml.tpl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,14 @@ serviceAccount:
122122
annotations: {}
123123
# eks.amazonaws.com/role-arn: arn:aws:iam::AWS_ACCOUNT_ID:role/IAM_ROLE_NAME
124124

125-
# leader election configurations
125+
# Configuration of the leader election. Required for running multiple instances of the
126+
# controller within the same cluster.
127+
# See https://kubernetes.io/docs/concepts/architecture/leases/#leader-election
126128
leaderElection:
127-
# Enables controller leader election
129+
# Enable Controller Leader Election. Set this to true to enable leader election
130+
# for this controller.
128131
enabled: false
129-
# Sets the leader election namespace. By default it will try to use the namespace of
130-
# the service account mounted to the controller pod.
132+
# Leader election can be scoped to a specific namespace. By default, the controller
133+
# will attempt to use the namespace of the service account mounted to the Controller
134+
# pod.
131135
namespace: ""

0 commit comments

Comments
 (0)