Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for findAndRemoveDeletedPods (0.2 sec)

  1. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    	}
    
    	// podWorker may call volume_manager WaitForUnmount() after we processed the pod in findAndRemoveDeletedPods()
    	dswp.ReprocessPod(podName)
    	dswp.findAndRemoveDeletedPods()
    
    	// findAndRemoveDeletedPods() above must detect orphaned pod and delete it from the map
    	if _, ok := dswp.pods.processedPods[podName]; ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator.go

    }
    
    func (dswp *desiredStateOfWorldPopulator) populatorLoopFunc(ctx context.Context) func(ctx context.Context) {
    	return func(ctx context.Context) {
    		logger := klog.FromContext(ctx)
    		dswp.findAndRemoveDeletedPods(logger)
    
    		// findAndAddActivePods is called periodically, independently of the main
    		// populator loop.
    		if time.Since(dswp.timeOfLastListPods) < dswp.listPodsRetryDuration {
    			logger.V(5).Info(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator_test.go

    	if !volumeExists {
    		t.Fatalf(
    			"VolumeExists(%q) failed. Expected: <true> Actual: <%v>",
    			expectedVolumeName,
    			volumeExists)
    	}
    
    	fakePodInformer.Informer().GetStore().Delete(pod)
    	dswp.findAndRemoveDeletedPods(logger)
    	//check if the given volume referenced by the pod still exists in dsw
    	volumeExists = dswp.desiredStateOfWorld.VolumeExists(expectedVolumeName, k8stypes.NodeName(pod.Spec.NodeName))
    	if volumeExists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    	dswp.hasAddedPodsLock.RLock()
    	defer dswp.hasAddedPodsLock.RUnlock()
    	return dswp.hasAddedPods
    }
    
    func (dswp *desiredStateOfWorldPopulator) populatorLoop() {
    	dswp.findAndAddNewPods()
    	dswp.findAndRemoveDeletedPods()
    }
    
    // Iterate through all pods and add to desired state of world if they don't
    // exist but should
    func (dswp *desiredStateOfWorldPopulator) findAndAddNewPods() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top