From f8f7876e84dcabe751d3cbc891c44119646b5351 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Mon, 31 Jul 2017 01:31:43 -0400 Subject: [PATCH] Fix rescheduler node implementation. --- pkg/rescheduler/node/node.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/rescheduler/node/node.go b/pkg/rescheduler/node/node.go index 37d3691ca..4e0aa0368 100644 --- a/pkg/rescheduler/node/node.go +++ b/pkg/rescheduler/node/node.go @@ -17,13 +17,15 @@ limitations under the License. package node import ( + "fmt" "time" "k8s.io/apimachinery/pkg/fields" - corelisters "k8s.io/client-go/listers/core/v1" + "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" "k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/client/clientset_generated/clientset" + corelisters "k8s.io/kubernetes/pkg/client/listers/core/v1" ) // ReadyNodes returns ready nodes irrespective of whether they are @@ -59,7 +61,7 @@ func IsReady(node *v1.Node) bool { // - NodeOutOfDisk condition status is ConditionFalse, // - NodeNetworkUnavailable condition status is ConditionFalse. if cond.Type == v1.NodeReady && cond.Status != v1.ConditionTrue { - glog.V(4).Infof("Ignoring node %v with %v condition status %v", node.Name, cond.Type, cond.Status) + fmt.Printf("Ignoring node %v with %v condition status %v", node.Name, cond.Type, cond.Status) return false } /*else if cond.Type == v1.NodeOutOfDisk && cond.Status != v1.ConditionFalse { glog.V(4).Infof("Ignoring node %v with %v condition status %v", node.Name, cond.Type, cond.Status)