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
commit b6bf0d6d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)