Merge pull request #84553 from ahg-g/ahg-nodeinfo

delete nodeinfo "getter"
This commit is contained in:
Kubernetes Prow Robot
2019-10-30 08:36:53 -07:00
committed by GitHub

View File

@@ -150,12 +150,6 @@ func Ordering() []string {
return predicatesOrdering 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. // FitPredicate is a function that indicates if a pod fits into an existing node.
// The failure information is given by the error. // The failure information is given by the error.
type FitPredicate func(pod *v1.Pod, meta PredicateMetadata, nodeInfo *schedulernodeinfo.NodeInfo) (bool, []PredicateFailureReason, error) type FitPredicate func(pod *v1.Pod, meta PredicateMetadata, nodeInfo *schedulernodeinfo.NodeInfo) (bool, []PredicateFailureReason, error)