File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
cluster-autoscaler/core/options Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ import (
26
26
"k8s.io/autoscaler/cluster-autoscaler/expander"
27
27
"k8s.io/autoscaler/cluster-autoscaler/observers/loopstart"
28
28
ca_processors "k8s.io/autoscaler/cluster-autoscaler/processors"
29
+ "k8s.io/autoscaler/cluster-autoscaler/processors/nodes"
30
+ "k8s.io/autoscaler/cluster-autoscaler/processors/scaledowncandidates"
29
31
"k8s.io/autoscaler/cluster-autoscaler/simulator/clustersnapshot"
30
32
"k8s.io/autoscaler/cluster-autoscaler/simulator/drainability/rules"
31
33
draprovider "k8s.io/autoscaler/cluster-autoscaler/simulator/dynamicresources/provider"
@@ -57,3 +59,7 @@ type AutoscalerOptions struct {
57
59
DrainabilityRules rules.Rules
58
60
DraProvider * draprovider.Provider
59
61
}
62
+
63
+ func (a * AutoscalerOptions ) RegisterScaleDownNodeProcessor (np nodes.ScaleDownNodeProcessor ) {
64
+ a .Processors .ScaleDownNodeProcessor .(* scaledowncandidates.CombinedScaleDownCandidatesProcessor ).Register (np )
65
+ }
You can’t perform that action at this time.
0 commit comments