- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetPVC (0.08 sec)
-
pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go
}, } } func verifyPVC(cache *PVCAssumeCache, pvcKey string, expectedPVC *v1.PersistentVolumeClaim) error { pvc, err := cache.GetPVC(pvcKey) if err != nil { return err } if pvc != expectedPVC { return fmt.Errorf("GetPVC() returned %p, expected %p", pvc, expectedPVC) } return nil } func TestAssumePVC(t *testing.T) { logger, _ := ktesting.NewTestContext(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/api/persistentvolumeclaim/util_test.go
enableRecoverVolumeExpansionFailure: false, enableVolumeAttributesClass: false, pvc: withAllocatedResource("5G"), oldPVC: getPVC(), expected: getPVC(), }, { name: "for:newPVC=hasAllocatedResource,oldPVC=doesnot,featuregate=RecoverVolumeExpansionFailure=true; should keep field",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder.go
claim := &v1.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: pvcName, Namespace: namespace, }, } pvcKey := getPVCName(claim) pvc, err := b.pvcCache.GetPVC(pvcKey) if err != nil || pvc == nil { return false, nil, fmt.Errorf("error getting PVC %q: %v", pvcKey, err) } fullyBound := b.isPVCFullyBound(pvc) if fullyBound {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 14:55:34 UTC 2024 - 42.6K bytes - Viewed (0)