mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Update scheduler framework plugins to align with the latest changes to the framework design
This commit is contained in:
4
pkg/scheduler/internal/cache/cache.go
vendored
4
pkg/scheduler/internal/cache/cache.go
vendored
@@ -122,8 +122,8 @@ func newNodeInfoListItem(ni *schedulernodeinfo.NodeInfo) *nodeInfoListItem {
|
||||
}
|
||||
|
||||
// NewNodeInfoSnapshot initializes a NodeInfoSnapshot struct and returns it.
|
||||
func NewNodeInfoSnapshot() NodeInfoSnapshot {
|
||||
return NodeInfoSnapshot{
|
||||
func NewNodeInfoSnapshot() *NodeInfoSnapshot {
|
||||
return &NodeInfoSnapshot{
|
||||
NodeInfoMap: make(map[string]*schedulernodeinfo.NodeInfo),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user