mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
feat(scheduler): move node info snapshot out of internal package
This commit is contained in:
10
pkg/scheduler/internal/cache/interface.go
vendored
10
pkg/scheduler/internal/cache/interface.go
vendored
@@ -101,7 +101,7 @@ type Cache interface {
|
||||
// UpdateNodeInfoSnapshot updates the passed infoSnapshot to the current contents of Cache.
|
||||
// The node info contains aggregated information of pods scheduled (including assumed to be)
|
||||
// on this node.
|
||||
UpdateNodeInfoSnapshot(nodeSnapshot *NodeInfoSnapshot) error
|
||||
UpdateNodeInfoSnapshot(nodeSnapshot *schedulernodeinfo.Snapshot) error
|
||||
|
||||
// AddCSINode adds overall CSI-related information about node.
|
||||
AddCSINode(csiNode *storagev1beta1.CSINode) error
|
||||
@@ -130,11 +130,3 @@ type Snapshot struct {
|
||||
AssumedPods map[string]bool
|
||||
Nodes map[string]*schedulernodeinfo.NodeInfo
|
||||
}
|
||||
|
||||
// NodeInfoSnapshot is a snapshot of cache NodeInfo. The scheduler takes a
|
||||
// snapshot at the beginning of each scheduling cycle and uses it for its
|
||||
// operations in that cycle.
|
||||
type NodeInfoSnapshot struct {
|
||||
NodeInfoMap map[string]*schedulernodeinfo.NodeInfo
|
||||
Generation int64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user