fix: predicates read nodes from scheduler cache

This commit is contained in:
draveness
2019-06-16 12:07:09 +08:00
parent c58f94caf1
commit 30b0f8bf3b
6 changed files with 44 additions and 22 deletions

View File

@@ -110,6 +110,9 @@ type Cache interface {
// RemoveCSINode removes overall CSI-related information about node.
RemoveCSINode(csiNode *storagev1beta1.CSINode) error
// GetNodeInfo returns the node object with node string.
GetNodeInfo(nodeName string) (*v1.Node, error)
// List lists all cached pods (including assumed ones).
List(labels.Selector) ([]*v1.Pod, error)