Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

add leadElectionNamespace arg #216

Merged

Conversation

Diddaa
Copy link
Contributor

@Diddaa Diddaa commented Sep 24, 2020

Copy link
Member

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Diddaa Diddaa force-pushed the improve/addLeaderElectionNamespaceArg branch from 2cca39f to 768c16f Compare September 24, 2020 07:23
Signed-off-by: yanxun <[email protected]>
@@ -45,6 +45,8 @@ func main() {
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
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", "default",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
flag.StringVar(&leaderElectionNamespace, "leader-election-namespace", "default",
flag.StringVar(&leaderElectionNamespace, "leader-election-namespace", "",

The default value should be empty

@wonderflow wonderflow merged commit 8cde76d into crossplane:master Sep 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants