- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkVolumeSatisfyClaim (0.27 sec)
-
pkg/controller/volume/persistentvolume/pv_controller.go
return ctrl.syncUnboundClaim(ctx, claim) } else { return ctrl.syncBoundClaim(ctx, claim) } } // checkVolumeSatisfyClaim checks if the volume requested by the claim satisfies the requirements of the claim func checkVolumeSatisfyClaim(volume *v1.PersistentVolume, claim *v1.PersistentVolumeClaim) error { requestedQty := claim.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 08:42:31 UTC 2024 - 89.2K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/index_test.go
isExpectedMatch: false, vol: pvToDelete, pvc: pvc, }, } for name, testCase := range satisfyingTestCases { t.Run(name, func(t *testing.T) { err := checkVolumeSatisfyClaim(testCase.vol, testCase.pvc) // expected to match but got an error if err != nil && testCase.isExpectedMatch { t.Errorf("%s: expected to match but got an error: %v", name, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 21 13:31:28 UTC 2023 - 44K bytes - Viewed (0)