From c95bba3f5f101bcdee1626122633a5c28374ae3e Mon Sep 17 00:00:00 2001 From: Hardik Dodiya Date: Thu, 7 May 2020 20:44:53 +0530 Subject: [PATCH] UPSTREAM:: Avoid checking controller references while draining (#44) --- cluster-autoscaler/simulator/drain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster-autoscaler/simulator/drain.go b/cluster-autoscaler/simulator/drain.go index 71dc092c9459..b1634f68b830 100644 --- a/cluster-autoscaler/simulator/drain.go +++ b/cluster-autoscaler/simulator/drain.go @@ -20,11 +20,11 @@ import ( "fmt" "time" + "github.com/gardener/autoscaler/cluster-autoscaler/utils/drain" apiv1 "k8s.io/api/core/v1" policyv1 "k8s.io/api/policy/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" - "github.com/gardener/autoscaler/cluster-autoscaler/utils/drain" client "k8s.io/client-go/kubernetes" schedulercache "k8s.io/kubernetes/pkg/scheduler/cache" ) @@ -70,7 +70,7 @@ func DetailedGetPodsForMove(nodeInfo *schedulercache.NodeInfo, skipNodesWithSyst false, skipNodesWithSystemPods, skipNodesWithLocalStorage, - true, + false, // TODO: Revendor the clients. client, minReplicaCount, time.Now())