Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setPodRuntimeBeRemoved (0.26 sec)

  1. pkg/kubelet/kubelet_volumes_test.go

    	assert.NoError(t, volumetest.VerifySetUpCallCount(
    		1 /* expectedSetUpCallCount */, testKubelet.volumePlugin))
    
    	// Remove pod
    	// TODO: technically waitForVolumeUnmount
    	kubelet.podWorkers.(*fakePodWorkers).setPodRuntimeBeRemoved(pod.UID)
    	kubelet.podManager.SetPods([]*v1.Pod{})
    
    	assert.NoError(t, kubelet.volumeManager.WaitForUnmount(context.Background(), pod))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  2. pkg/kubelet/pod_workers_test.go

    }
    func (f *fakePodWorkers) ShouldPodRuntimeBeRemoved(uid types.UID) bool {
    	f.statusLock.Lock()
    	defer f.statusLock.Unlock()
    	return f.removeRuntime[uid]
    }
    func (f *fakePodWorkers) setPodRuntimeBeRemoved(uid types.UID) {
    	f.statusLock.Lock()
    	defer f.statusLock.Unlock()
    	f.removeRuntime = map[types.UID]bool{uid: true}
    }
    func (f *fakePodWorkers) ShouldPodContentBeRemoved(uid types.UID) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
Back to top