Skip to content

Commit

Permalink
Merge pull request kubernetes#84553 from ahg-g/ahg-nodeinfo
Browse files Browse the repository at this point in the history
delete nodeinfo "getter"
  • Loading branch information
k8s-ci-robot authored Oct 30, 2019
2 parents 5e468a4 + 0a29c06 commit b6bf0d6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/scheduler/algorithm/predicates/predicates.go
Original file line number Diff line number Diff line change
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 b6bf0d6

Please sign in to comment.