From d27a65f43aaca539bc3fe8c0361f81e4c18c11a7 Mon Sep 17 00:00:00 2001 From: Chris Hein Date: Wed, 18 Nov 2020 22:40:45 -0800 Subject: [PATCH] :warning: changing flag names Signed-off-by: Chris Hein --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 2622fb77..493f83e0 100644 --- a/main.go +++ b/main.go @@ -63,19 +63,19 @@ func init() { // InitFlags initializes the flags. func InitFlags(fs *pflag.FlagSet) { - fs.StringVar(&metricsAddr, "metrics-addr", ":8080", + fs.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.") - fs.BoolVar(&enableLeaderElection, "enable-leader-election", false, + fs.BoolVar(&enableLeaderElection, "leader-elect", false, "Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.") - fs.DurationVar(&leaderElectionLeaseDuration, "leader-election-lease-duration", 15*time.Second, + fs.DurationVar(&leaderElectionLeaseDuration, "leader-elect-lease-duration", 15*time.Second, "Interval at which non-leader candidates will wait to force acquire leadership (duration string)") - fs.DurationVar(&leaderElectionRenewDeadline, "leader-election-renew-deadline", 10*time.Second, + fs.DurationVar(&leaderElectionRenewDeadline, "leader-elect-renew-deadline", 10*time.Second, "Duration that the leading controller manager will retry refreshing leadership before giving up (duration string)") - fs.DurationVar(&leaderElectionRetryPeriod, "leader-election-retry-period", 2*time.Second, + fs.DurationVar(&leaderElectionRetryPeriod, "leader-elect-retry-period", 2*time.Second, "Duration the LeaderElector clients should wait between tries of actions (duration string)") fs.StringVar(&profilerAddress, "profiler-address", "",