Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for findNonScheduledPodsByPVC (0.3 sec)

  1. pkg/controller/volume/persistentvolume/pv_controller.go

    			continue
    		}
    		podNames.Insert(pod.Namespace + "/" + pod.Name)
    	}
    	return podNames.List(), podNames.Len() != 0, nil
    }
    
    // findNonScheduledPodsByPVC returns list of non-scheduled active pods that reference given PVC.
    func (ctrl *PersistentVolumeController) findNonScheduledPodsByPVC(pvc *v1.PersistentVolumeClaim) ([]string, error) {
    	pvcKey := fmt.Sprintf("%s/%s", pvc.Namespace, pvc.Name)
    	pods, err := ctrl.findPodsByPVCKey(pvcKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
Back to top