mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Update pkg/kubelet/kubelet_test.go
Co-authored-by: Natasha Sarkar <natashasarkar@google.com>
This commit is contained in:
committed by
GitHub
parent
4c7840ec5d
commit
f8b893489c
@@ -2427,7 +2427,8 @@ func TestPodResourceAllocationReset(t *testing.T) {
|
||||
defer testKubelet.Cleanup()
|
||||
kubelet := testKubelet.kubelet
|
||||
|
||||
// fakePodWorkers trigger syncPodFn synchronously on update
|
||||
// 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