diff --git a/cluster-autoscaler/utils/backoff/backoff.go b/cluster-autoscaler/utils/backoff/backoff.go index 85da73556cd0..a4409d2f99ca 100644 --- a/cluster-autoscaler/utils/backoff/backoff.go +++ b/cluster-autoscaler/utils/backoff/backoff.go @@ -39,6 +39,4 @@ type Backoff interface { RemoveBackoff(nodeGroup cloudprovider.NodeGroup, nodeInfo *schedulerframework.NodeInfo) // RemoveStaleBackoffData removes stale backoff data. RemoveStaleBackoffData(currentTime time.Time) - // IsNodeGroupOutOfResources returns true if the given node group is out of resources. - IsNodeGroupOutOfResources(nodeGroup cloudprovider.NodeGroup) bool } diff --git a/cluster-autoscaler/utils/backoff/exponential_backoff.go b/cluster-autoscaler/utils/backoff/exponential_backoff.go index eafca64e55e1..0631878a98a0 100644 --- a/cluster-autoscaler/utils/backoff/exponential_backoff.go +++ b/cluster-autoscaler/utils/backoff/exponential_backoff.go @@ -120,9 +120,3 @@ func (b *exponentialBackoff) RemoveStaleBackoffData(currentTime time.Time) { } } } - -// IsNodeGroupOutOfResources returns true if the given node group is out of resources. -func (b *exponentialBackoff) IsNodeGroupOutOfResources(nodeGroup cloudprovider.NodeGroup) bool { - backoffInfo, found := b.backoffInfo[b.nodeGroupKey(nodeGroup)] - return found && backoffInfo.errorClass == cloudprovider.OutOfResourcesErrorClass -}