@@ -63,19 +63,19 @@ func init() {
63
63
64
64
// InitFlags initializes the flags.
65
65
func InitFlags (fs * pflag.FlagSet ) {
66
- fs .StringVar (& metricsAddr , "metrics-addr " , ":8080" ,
66
+ fs .StringVar (& metricsAddr , "metrics-bind-address " , ":8080" ,
67
67
"The address the metric endpoint binds to." )
68
68
69
- fs .BoolVar (& enableLeaderElection , "enable- leader-election " , false ,
69
+ fs .BoolVar (& enableLeaderElection , "leader-elect " , false ,
70
70
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager." )
71
71
72
- fs .DurationVar (& leaderElectionLeaseDuration , "leader-election -lease-duration" , 15 * time .Second ,
72
+ fs .DurationVar (& leaderElectionLeaseDuration , "leader-elect -lease-duration" , 15 * time .Second ,
73
73
"Interval at which non-leader candidates will wait to force acquire leadership (duration string)" )
74
74
75
- fs .DurationVar (& leaderElectionRenewDeadline , "leader-election -renew-deadline" , 10 * time .Second ,
75
+ fs .DurationVar (& leaderElectionRenewDeadline , "leader-elect -renew-deadline" , 10 * time .Second ,
76
76
"Duration that the leading controller manager will retry refreshing leadership before giving up (duration string)" )
77
77
78
- fs .DurationVar (& leaderElectionRetryPeriod , "leader-election -retry-period" , 2 * time .Second ,
78
+ fs .DurationVar (& leaderElectionRetryPeriod , "leader-elect -retry-period" , 2 * time .Second ,
79
79
"Duration the LeaderElector clients should wait between tries of actions (duration string)" )
80
80
81
81
fs .StringVar (& profilerAddress , "profiler-address" , "" ,
0 commit comments