- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for findBestMatchForClaim (0.33 sec)
-
pkg/controller/volume/persistentvolume/index_test.go
index.store.Add(ebs) index.store.Add(nfs) volume, _ := index.findBestMatchForClaim(claim, false) if volume.Name != ebs.Name { t.Errorf("Expected %s but got volume %s instead", ebs.Name, volume.Name) } claim.Spec.AccessModes = []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany} volume, _ = index.findBestMatchForClaim(claim, false) if volume.Name != gce.Name {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 21 13:31:28 UTC 2023 - 44K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/index.go
return nil, err } if bestVol != nil { return bestVol, nil } } return nil, nil } // findBestMatchForClaim is a convenience method that finds a volume by the claim's AccessModes and requests for Storage func (pvIndex *persistentVolumeOrderedIndex) findBestMatchForClaim(claim *v1.PersistentVolumeClaim, delayBinding bool) (*v1.PersistentVolume, error) { return pvIndex.findByClaim(claim, delayBinding) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 6.5K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/pv_controller.go
delayBinding, err := storagehelpers.IsDelayBindingMode(claim, ctrl.classLister) if err != nil { return err } // [Unit test set 1] volume, err := ctrl.volumes.findBestMatchForClaim(claim, delayBinding) if err != nil { logger.V(2).Info("Synchronizing unbound PersistentVolumeClaim, Error finding PV for claim", "PVC", klog.KObj(claim), "err", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 08:42:31 UTC 2024 - 89.2K bytes - Viewed (0)