Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
disable leader election by default DK-2475 (#5)
Browse files Browse the repository at this point in the history
* disable leader election by default

* Update README.md

* set default false
  • Loading branch information
raffis committed Oct 4, 2021
1 parent 2c4a815 commit 916e7f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Available env variables:
|-------|-------------| --------|
| `METRICS_ADDR` | The address of the metric endpoint binds to. | `:9556` |
| `PROBE_ADDR` | The address of the probe endpoints binds to. | `:9557` |
| `ENABLE_LEADER_ELECTION` | Enable leader election for controller manager. | `true` |
| `ENABLE_LEADER_ELECTION` | Enable leader election for controller manager. | `false` |
| `LEADER_ELECTION_NAMESPACE` | Change the leader election namespace. This is by default the same where the controller is deployed. | `` |
| `NAMESPACES` | The controller listens by default for all namespaces. This may be limited to a comma delimited list of dedicated namespaces. | `` |
| `CONCURRENT` | The number of concurrent reconcile workers. | `4` |
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var (
var (
metricsAddr = ":9556"
probesAddr = ":9557"
enableLeaderElection = true
enableLeaderElection = false
leaderElectionNamespace = ""
namespaces = ""
concurrent = 4
Expand All @@ -60,7 +60,7 @@ func init() {
func main() {
flag.StringVar(&metricsAddr, "metrics-addr", ":9556", "The address of the metric endpoint binds to.")
flag.StringVar(&probesAddr, "probe-addr", ":9557", "The address of the probe endpoints bind to.")
flag.BoolVar(&enableLeaderElection, "enable-leader-election", true,
flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
flag.StringVar(&leaderElectionNamespace, "leader-election-namespace", "",
Expand Down

0 comments on commit 916e7f8

Please sign in to comment.