fix ImageLocality plugin score is inconsistent

This commit is contained in:
olderTaoist
2023-09-13 20:07:33 +08:00
committed by mengxiangyong02
parent 0554675d78
commit 5d5958e338
9 changed files with 351 additions and 109 deletions

View File

@@ -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 {