- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 320 for persistentVolumeClaim (0.39 sec)
-
pkg/kubelet/volumemanager/reconciler/reconciler_test.go
} } }) } } func getTestPVC(pvName string, volumeMode *v1.PersistentVolumeMode, specSize, statusSize resource.Quantity) *v1.PersistentVolumeClaim { pvc := &v1.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: "pvc", UID: "pvcuid", }, Spec: v1.PersistentVolumeClaimSpec{ Resources: v1.VolumeResourceRequirements{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 07:34:33 UTC 2024 - 75.4K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/pv_controller_test.go
obj := ctrl.claims.List()[0] claim := obj.(*v1.PersistentVolumeClaim) return claim.Status.Phase == v1.ClaimLost, nil }) if err != nil { return err } // trying to remove the claim as well obj := ctrl.claims.List()[0] claim := obj.(*v1.PersistentVolumeClaim) reactor.DeleteClaimEvent(claim)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 43.4K bytes - Viewed (0) -
pkg/kubelet/server/stats/volume_stat_calculator_test.go
PDName: "fake-device1", }, }, }, { Name: vol1, VolumeSource: k8sv1.VolumeSource{ PersistentVolumeClaim: &k8sv1.PersistentVolumeClaimVolumeSource{ ClaimName: pvcClaimName0, }, }, }, { Name: vol2, VolumeSource: k8sv1.VolumeSource{ PersistentVolumeClaim: &k8sv1.PersistentVolumeClaimVolumeSource{ ClaimName: pvcClaimName1, }, }, }, { Name: vol3,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 9.6K bytes - Viewed (0) -
pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go
func (dswp *desiredStateOfWorldPopulator) createVolumeSpec( podVolume v1.Volume, pod *v1.Pod, mounts, devices sets.Set[string]) (*v1.PersistentVolumeClaim, *volume.Spec, string, error) { pvcSource := podVolume.VolumeSource.PersistentVolumeClaim isEphemeral := pvcSource == nil && podVolume.VolumeSource.Ephemeral != nil if isEphemeral { // Generic ephemeral inline volumes are handled the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 23.8K bytes - Viewed (0) -
plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go
return nil } func (c *storageProtectionPlugin) admitPVC(a admission.Attributes) error { if len(a.GetSubresource()) != 0 { return nil } pvc, ok := a.GetObject().(*api.PersistentVolumeClaim) // if we can't convert the obj to PVC, just return if !ok { return nil } for _, f := range pvc.Finalizers { if f == volumeutil.PVCProtectionFinalizer {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 02 21:13:50 UTC 2021 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/api/storage/v1alpha1/types.go
// new parameters, and the PersistentVolumeClaim should be updated to reference // the new VolumeAttributesClass. // // This field is required and must contain at least one key/value pair. // The keys cannot be empty, and the maximum number of parameters is 512, with // a cumulative max size of 256K. If the CSI driver rejects invalid parameters, // the target PersistentVolumeClaim will be set to an "Infeasible" state in the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:32 UTC 2023 - 13.4K bytes - Viewed (0) -
plugin/pkg/admission/storage/storageclass/setdefault/admission.go
if attr.GetResource().GroupResource() != api.Resource("persistentvolumeclaims") { return nil } if len(attr.GetSubresource()) != 0 { return nil } pvc, ok := attr.GetObject().(*api.PersistentVolumeClaim) // if we can't convert then we don't handle this object so just return if !ok { return nil } if helper.PersistentVolumeClaimHasClass(pvc) { // The user asked for a class. return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 02 18:52:04 UTC 2022 - 3.4K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/node_expander_test.go
func TestNodeExpander(t *testing.T) { nodeResizeFailed := v1.PersistentVolumeClaimNodeResizeFailed nodeResizePending := v1.PersistentVolumeClaimNodeResizePending var tests = []struct { name string pvc *v1.PersistentVolumeClaim pv *v1.PersistentVolume // desired size, defaults to pv.Spec.Capacity desiredSize *resource.Quantity // actualSize, defaults to pvc.Status.Capacity actualSize *resource.Quantity
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 5.7K bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller.go
return } ec.queue.Add(key) break } } } func (ec *ephemeralController) onPVCDelete(obj interface{}) { pvc, ok := obj.(*v1.PersistentVolumeClaim) if !ok { return } // Someone deleted a PVC, either intentionally or // accidentally. If there is a pod referencing it because of // an ephemeral volume, then we should re-create the PVC.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go
Spec: v1.PodSpec{ SecurityContext: &v1.PodSecurityContext{ SELinuxOptions: &seLinux, }, Volumes: []v1.Volume{ { Name: "volume-name", VolumeSource: v1.VolumeSource{ PersistentVolumeClaim: &v1.PersistentVolumeClaimVolumeSource{ ClaimName: "myClaim", }, }, }, }, }, } volumeSpec := &volume.Spec{ PersistentVolume: &v1.PersistentVolume{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 34K bytes - Viewed (0)