Skip to content

Commit

Permalink
delete nodeinfo lister
Browse files Browse the repository at this point in the history
  • Loading branch information
ahg-g committed Oct 30, 2019
1 parent 86dbdbe commit 0a29c06
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/scheduler/algorithm/predicates/predicates.go
Expand Up @@ -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)
Expand Down

0 comments on commit 0a29c06

Please sign in to comment.