1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-27 05:46:13 +01:00

Refactoring test by make it table driven and adding golangci-lint to the CI pipeline

This commit is contained in:
Reeta Singh
2019-05-11 17:06:50 -07:00
parent 60fbaca305
commit dee89a6cc1
10 changed files with 137 additions and 49 deletions

View File

@@ -120,10 +120,7 @@ func IsReady(node *v1.Node) bool {
// IsNodeUschedulable checks if the node is unschedulable. This is helper function to check only in case of
// underutilized node so that they won't be accounted for.
func IsNodeUschedulable(node *v1.Node) bool {
if node.Spec.Unschedulable {
return true
}
return false
return node.Spec.Unschedulable
}
// PodFitsAnyNode checks if the given pod fits any of the given nodes, based on