fix ImageLocality plugin score is inconsistent
This commit is contained in:

committed by
mengxiangyong02

parent
0554675d78
commit
5d5958e338
@@ -942,7 +942,7 @@ func addNominatedPods(ctx context.Context, fh framework.Handle, pod *v1.Pod, sta
|
||||
if len(nominatedPodInfos) == 0 {
|
||||
return false, state, nodeInfo, nil
|
||||
}
|
||||
nodeInfoOut := nodeInfo.Clone()
|
||||
nodeInfoOut := nodeInfo.Snapshot()
|
||||
stateOut := state.Clone()
|
||||
podsAdded := false
|
||||
for _, pi := range nominatedPodInfos {
|
||||
|
Reference in New Issue
Block a user