Skip to content

Commit a15bd8c

Browse files
committed
remove deprecated flags in controller manager options
Signed-off-by: dahuo98 <sxdahuo@gmail.com>
1 parent 105c6ef commit a15bd8c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/controller-manager/app/options/options.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,6 @@ func (o *Options) AddFlags(flags *pflag.FlagSet, allControllers, disabledByDefau
185185
flags.DurationVar(&o.LeaderElection.RetryPeriod.Duration, "leader-elect-retry-period", defaultElectionRetryPeriod.Duration, ""+
186186
"The duration the clients should wait between attempting acquisition and renewal "+
187187
"of a leadership. This is only applicable if leader election is enabled.")
188-
flags.DurationVar(&o.ClusterLeaseDuration.Duration, "cluster-lease-duration", 40*time.Second,
189-
"Specifies the expiration period of a cluster lease.")
190-
_ = flags.MarkDeprecated("cluster-lease-duration", "The flag --cluster-lease-duration has been marked deprecated because it has never been used, and will be removed in a future release.")
191-
flags.Float64Var(&o.ClusterLeaseRenewIntervalFraction, "cluster-lease-renew-interval-fraction", 0.25,
192-
"Specifies the cluster lease renew interval fraction.")
193-
_ = flags.MarkDeprecated("cluster-lease-renew-interval-fraction", "The flag --cluster-lease-renew-interval-fraction has been marked deprecated because it has never been used, and will be removed in a future release.")
194188
flags.DurationVar(&o.ClusterSuccessThreshold.Duration, "cluster-success-threshold", 30*time.Second, "The duration of successes for the cluster to be considered healthy after recovery.")
195189
flags.DurationVar(&o.ClusterFailureThreshold.Duration, "cluster-failure-threshold", 30*time.Second, "The duration of failure for the cluster to be considered unhealthy.")
196190
flags.DurationVar(&o.ClusterMonitorPeriod.Duration, "cluster-monitor-period", 5*time.Second,

0 commit comments

Comments
 (0)