From 0a29c06ba644007937dda1ce6990715ca5c735b6 Mon Sep 17 00:00:00 2001 From: Abdullah Gharaibeh Date: Wed, 30 Oct 2019 08:59:18 -0400 Subject: [PATCH] delete nodeinfo lister --- pkg/scheduler/algorithm/predicates/predicates.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/scheduler/algorithm/predicates/predicates.go b/pkg/scheduler/algorithm/predicates/predicates.go index 44ba22daf0f6b..0104bcd43b326 100644 --- a/pkg/scheduler/algorithm/predicates/predicates.go +++ b/pkg/scheduler/algorithm/predicates/predicates.go @@ -150,12 +150,6 @@ func Ordering() []string { return predicatesOrdering } -// NodeInfo interface represents anything that can get node object from node name. -// TODO(ahg-g): should be deleted, still exist because kubelet depends on it. -type NodeInfo interface { - GetNodeInfo(nodeName string) (*v1.Node, error) -} - // FitPredicate is a function that indicates if a pod fits into an existing node. // The failure information is given by the error. type FitPredicate func(pod *v1.Pod, meta PredicateMetadata, nodeInfo *schedulernodeinfo.NodeInfo) (bool, []PredicateFailureReason, error)