mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Merge pull request #132095 from esotsal/podResizeMutex-cleanup
Remove unecessary comment since podResizeMutex no longer exist.
This commit is contained in:
@@ -2427,8 +2427,8 @@ func TestPodResourceAllocationReset(t *testing.T) {
|
||||
defer testKubelet.Cleanup()
|
||||
kubelet := testKubelet.kubelet
|
||||
|
||||
// fakePodWorkers trigger syncPodFn synchronously on update, but entering
|
||||
// kubelet.SyncPod while holding the podResizeMutex can lead to deadlock.
|
||||
// fakePodWorkers triggers syncPodFn synchronously on update. We overwrite it here to
|
||||
// avoid calling kubelet.SyncPod, which performs resize resource allocation.
|
||||
kubelet.podWorkers.(*fakePodWorkers).syncPodFn =
|
||||
func(_ context.Context, _ kubetypes.SyncPodType, _, _ *v1.Pod, _ *kubecontainer.PodStatus) (bool, error) {
|
||||
return false, nil
|
||||
|
||||
Reference in New Issue
Block a user