Skip to content

Commit

Permalink
remove changes to backoff interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wllbo committed Feb 13, 2024
1 parent aa1af03 commit 8a2cae3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions cluster-autoscaler/utils/backoff/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
6 changes: 0 additions & 6 deletions cluster-autoscaler/utils/backoff/exponential_backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8a2cae3

Please sign in to comment.