Commit 214c9160 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #30585 from m1093782566/remotve-duplicated-assignment

Automatic merge from submit-queue remove duplicated nodeinfo.pods assignment There are duplicated assignments for nodeinfo.pods, one place is [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/schedulercache/node_info.go#L139) and the other one is [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/schedulercache/node_info.go#L147). I think we can remove one. The related issue is #30610
parents d989fa97 8f607394
...@@ -133,10 +133,8 @@ func (n *NodeInfo) AllocatableResource() Resource { ...@@ -133,10 +133,8 @@ func (n *NodeInfo) AllocatableResource() Resource {
} }
func (n *NodeInfo) Clone() *NodeInfo { func (n *NodeInfo) Clone() *NodeInfo {
pods := append([]*api.Pod(nil), n.pods...)
clone := &NodeInfo{ clone := &NodeInfo{
node: n.node, node: n.node,
pods: pods,
requestedResource: &(*n.requestedResource), requestedResource: &(*n.requestedResource),
nonzeroRequest: &(*n.nonzeroRequest), nonzeroRequest: &(*n.nonzeroRequest),
allocatableResource: &(*n.allocatableResource), allocatableResource: &(*n.allocatableResource),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment