Skip to content

Commit 3dcbfb8

Browse files
committed
fix lint
Signed-off-by: whosefriendA <[email protected]>
1 parent dcca3cf commit 3dcbfb8

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func (o *FailoverOptions) AddFlags(flags *pflag.FlagSet) {
6464
flags.Float32Var(&o.SecondaryResourceEvictionRate, "secondary-resource-eviction-rate", 0.1, "The secondary resource eviction rate when the Karmada instance is unhealthy.")
6565
flags.Float32Var(&o.UnhealthyClusterThreshold, "unhealthy-cluster-threshold", 0.55, "The unhealthy threshold of the cluster, if the ratio of unhealthy clusters to total clusters exceeds this threshold, the Karmada instance is considered unhealthy.")
6666
flags.IntVar(&o.LargeClusterNumThreshold, "large-cluster-num-threshold", 10, "The large-scale threshold of the Karmada instance. When the number of clusters in a large-scale federation exceeds this threshold and the federation is unhealthy, the resource eviction rate will be reduced; otherwise, the eviction will be stopped.")
67-
6867
}
6968

7069
// Validate checks FailoverOptions and return a slice of found errs.

pkg/controllers/cluster/eviction_worker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type EvictionWorker interface {
3636
util.AsyncWorker
3737
}
3838

39+
// EvictionQueueOptions holds the options that control the behavior of the graceful eviction queue based on the overall health of the clusters.
3940
type EvictionQueueOptions struct {
4041
// ResourceEvictionRate is the number of resources to be evicted per second.
4142
// This is the default rate when the system is considered healthy.

0 commit comments

Comments
 (0)