- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 33 for ClaimBound (0.16 sec)
-
pkg/controller/volume/expand/expand_controller.go
}) return expc, nil } func (expc *expandController) enqueuePVC(obj interface{}) { pvc, ok := obj.(*v1.PersistentVolumeClaim) if !ok { return } if pvc.Status.Phase == v1.ClaimBound { key, err := cache.DeletionHandlingMetaNamespaceKeyFunc(pvc) if err != nil { runtime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", pvc, err)) return } expc.queue.Add(key) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 16.2K bytes - Viewed (0) -
pkg/apis/core/fuzzer/fuzzer.go
}, func(pvc *core.PersistentVolumeClaim, c fuzz.Continue) { c.FuzzNoCustom(pvc) // fuzz self without calling this function again types := []core.PersistentVolumeClaimPhase{core.ClaimBound, core.ClaimPending, core.ClaimLost} pvc.Status.Phase = types[c.Rand.Intn(len(types))] volumeModes := []core.PersistentVolumeMode{core.PersistentVolumeFilesystem, core.PersistentVolumeBlock}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 04:32:01 UTC 2024 - 18.5K bytes - Viewed (0) -
pkg/volume/hostpath/host_path_test.go
ObjectMeta: metav1.ObjectMeta{ Name: "claimA", Namespace: "nsA", }, Spec: v1.PersistentVolumeClaimSpec{ VolumeName: "pvA", }, Status: v1.PersistentVolumeClaimStatus{ Phase: v1.ClaimBound, }, } client := fake.NewSimpleClientset(pv, claim) plugMgr := volume.VolumePluginMgr{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 00:37:30 UTC 2023 - 20.5K bytes - Viewed (0) -
pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go
// a pod and user deletes a PVC that's used by it at the same time. if pvc.ObjectMeta.DeletionTimestamp != nil { return nil, errors.New("PVC is being deleted") } if pvc.Status.Phase != v1.ClaimBound { return nil, errors.New("PVC is not bound") } if pvc.Spec.VolumeName == "" { return nil, errors.New("PVC has empty pvc.Spec.VolumeName") } return pvc, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 23.8K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/attach_detach_controller.go
if apierrors.IsNotFound(err) { logger.V(4).Info("Error getting pvc from informer", "pvcKey", key, "err", err) return nil } if err != nil { return err } if pvc.Status.Phase != v1.ClaimBound || pvc.Spec.VolumeName == "" { // Skip unbound PVCs. return nil } objs, err := adc.podIndexer.ByIndex(common.PodPVCIndex, key) if err != nil { return err } for _, obj := range objs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.6K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/framework_test.go
claim.Annotations[a] = mockPluginName default: claim.Annotations[a] = "yes" } } } // Bound claims must have proper Status. if phase == v1.ClaimBound { claim.Status.AccessModes = claim.Spec.AccessModes // For most of the tests it's enough to copy claim's requested capacity, // individual tests can adjust it using withExpectedCapacity()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 09:54:00 UTC 2023 - 38.3K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
Requests: core.ResourceList{ core.ResourceName(core.ResourceStorage): resource.MustParse("10G"), }, }, }, core.PersistentVolumeClaimStatus{ Phase: core.ClaimBound, }) validClaimStorageClass := testVolumeClaimStorageClass("foo", "ns", "fast", core.PersistentVolumeClaimSpec{ AccessModes: []core.PersistentVolumeAccessMode{ core.ReadOnlyMany, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0) -
plugin/pkg/admission/noderestriction/admission_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 73.2K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/pv_controller.go
return err } claim = updatedClaim if updatedClaim, err = ctrl.updateClaimStatus(ctx, claim, v1.ClaimBound, volume); err != nil { logger.V(3).Info("Error binding volume to claim: failed saving the claim status", "PVC", klog.KObj(claim), "volumeName", volume.Name, "err", err) return err } claim = updatedClaim
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/printers/internalversion/printers_test.go
Name: "test1", }, Spec: api.PersistentVolumeClaimSpec{ VolumeName: "my-volume", VolumeMode: &volumeMode, }, Status: api.PersistentVolumeClaimStatus{ Phase: api.ClaimBound, AccessModes: []api.PersistentVolumeAccessMode{api.ReadOnlyMany}, Capacity: map[api.ResourceName]resource.Quantity{ api.ResourceStorage: resource.MustParse("4Gi"), }, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 218.6K bytes - Viewed (0)