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", "",