Skip to content

Commit 2ba6132

Browse files
committed
Fix e2e test error due to ContainersToUpdate map not created
1 parent 9a5c578 commit 2ba6132

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/kubelet/kuberuntime/kuberuntime_manager.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,10 @@ func (m *kubeGenericRuntimeManager) computePodActions(ctx context.Context, pod *
985985
}
986986
}
987987

988+
if IsInPlacePodVerticalScalingAllowed(pod) {
989+
changes.ContainersToUpdate = make(map[v1.ResourceName][]containerToUpdateInfo)
990+
}
991+
988992
// Check initialization progress.
989993
if !handleRestartableInitContainers {
990994
initLastStatus, next, done := findNextInitContainerToRun(pod, podStatus)
@@ -1020,10 +1024,6 @@ func (m *kubeGenericRuntimeManager) computePodActions(ctx context.Context, pod *
10201024
}
10211025
}
10221026

1023-
if IsInPlacePodVerticalScalingAllowed(pod) {
1024-
changes.ContainersToUpdate = make(map[v1.ResourceName][]containerToUpdateInfo)
1025-
}
1026-
10271027
// Number of running containers to keep.
10281028
keepCount := 0
10291029
// check the status of containers.

0 commit comments

Comments
 (0)