Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit d27a65f

Browse files
⚠️ changing flag names
Signed-off-by: Chris Hein <[email protected]>
1 parent c42f2bd commit d27a65f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ func init() {
6363

6464
// InitFlags initializes the flags.
6565
func InitFlags(fs *pflag.FlagSet) {
66-
fs.StringVar(&metricsAddr, "metrics-addr", ":8080",
66+
fs.StringVar(&metricsAddr, "metrics-bind-address", ":8080",
6767
"The address the metric endpoint binds to.")
6868

69-
fs.BoolVar(&enableLeaderElection, "enable-leader-election", false,
69+
fs.BoolVar(&enableLeaderElection, "leader-elect", false,
7070
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")
7171

72-
fs.DurationVar(&leaderElectionLeaseDuration, "leader-election-lease-duration", 15*time.Second,
72+
fs.DurationVar(&leaderElectionLeaseDuration, "leader-elect-lease-duration", 15*time.Second,
7373
"Interval at which non-leader candidates will wait to force acquire leadership (duration string)")
7474

75-
fs.DurationVar(&leaderElectionRenewDeadline, "leader-election-renew-deadline", 10*time.Second,
75+
fs.DurationVar(&leaderElectionRenewDeadline, "leader-elect-renew-deadline", 10*time.Second,
7676
"Duration that the leading controller manager will retry refreshing leadership before giving up (duration string)")
7777

78-
fs.DurationVar(&leaderElectionRetryPeriod, "leader-election-retry-period", 2*time.Second,
78+
fs.DurationVar(&leaderElectionRetryPeriod, "leader-elect-retry-period", 2*time.Second,
7979
"Duration the LeaderElector clients should wait between tries of actions (duration string)")
8080

8181
fs.StringVar(&profilerAddress, "profiler-address", "",

0 commit comments

Comments
 (0)