Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for PVName (0.12 sec)

  1. pkg/scheduler/framework/plugins/nodevolumelimits/csi.go

    	pvName := pvc.Spec.VolumeName
    
    	if pvName == "" {
    		logger.V(5).Info("Persistent volume had no name for claim", "PVC", klog.KObj(pvc))
    		return pl.getCSIDriverInfoFromSC(logger, csiNode, pvc)
    	}
    
    	pv, err := pl.pvLister.Get(pvName)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. pkg/volume/nfs/nfs.go

    	}}, nil
    }
    
    // Recycle recycles/scrubs clean an NFS volume.
    // Recycle blocks until the pod has completed or any error occurs.
    func (plugin *nfsPlugin) Recycle(pvName string, spec *volume.Spec, eventRecorder recyclerclient.RecycleEventRecorder) error {
    	if spec.PersistentVolume == nil || spec.PersistentVolume.Spec.NFS == nil {
    		return fmt.Errorf("spec.PersistentVolumeSource.NFS is nil")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			verifyTearDownCalls(fakePlugin, 0)
    		})
    	}
    }
    
    func getPodPVCAndPV(volumeMode v1.PersistentVolumeMode, podName, pvName, pvcName string) (*v1.Pod, *v1.PersistentVolume, *v1.PersistentVolumeClaim) {
    	pv := &v1.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: pvName,
    			UID:  "pvuid",
    		},
    		Spec: v1.PersistentVolumeSpec{
    			ClaimRef:   &v1.ObjectReference{Name: pvcName},
    			VolumeMode: &volumeMode,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    				return nil, nil, "", err
    			}
    		}
    		pvName, pvcUID := pvc.Spec.VolumeName, pvc.UID
    		klog.V(5).InfoS("Found bound PV for PVC", "PVC", klog.KRef(pod.Namespace, pvcSource.ClaimName), "PVCUID", pvcUID, "PVName", pvName)
    		// Fetch actual PV object
    		volumeSpec, volumeGidValue, err :=
    			dswp.getPVSpec(pvName, pvcSource.ReadOnly, pvcUID)
    		if err != nil {
    			return nil, nil, "", fmt.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. pkg/volume/hostpath/host_path.go

    // Recycle blocks until the pod has completed or any error occurs.
    // HostPath recycling only works in single node clusters and is meant for testing purposes only.
    func (plugin *hostPathPlugin) Recycle(pvName string, spec *volume.Spec, eventRecorder recyclerclient.RecycleEventRecorder) error {
    	if spec.PersistentVolume == nil || spec.PersistentVolume.Spec.HostPath == nil {
    		return fmt.Errorf("spec.PersistentVolume.Spec.HostPath is nil")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. pkg/volume/plugins.go

    	// volume. Example: 5Gi volume x 30s increment = 150s + 30s minimum = 180s
    	// ActiveDeadlineSeconds for recycler pod
    	RecyclerTimeoutIncrement int
    
    	// PVName is name of the PersistentVolume instance that is being recycled.
    	// It is used to generate unique recycler pod name.
    	PVName string
    
    	// OtherAttributes stores config as strings.  These strings are opaque to
    	// the system and only understood by the binary hosting the plugin and the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  7. pkg/volume/portworx/portworx.go

    	}
    
    	volumeID, sizeGiB, labels, err := c.manager.CreateVolume(c)
    	if err != nil {
    		return nil, err
    	}
    
    	pv := &v1.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:   c.options.PVName,
    			Labels: map[string]string{},
    			Annotations: map[string]string{
    				util.VolumeDynamicallyCreatedByKey: "portworx-volume-dynamic-provisioner",
    			},
    		},
    		Spec: v1.PersistentVolumeSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. pkg/controller/volume/persistentvolume/pv_controller.go

    	//  yet.
    
    	pvName := ctrl.getProvisionedVolumeNameForClaim(claim)
    	volume, err := ctrl.kubeClient.CoreV1().PersistentVolumes().Get(ctx, pvName, metav1.GetOptions{})
    	if err != nil && !apierrors.IsNotFound(err) {
    		logger.V(3).Info("Error reading persistent volume", "PV", klog.KRef("", pvName), "err", err)
    		return pluginName, err
    	}
    	if err == nil && volume != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  9. pkg/volume/testing/testing.go

    	return !plugin.NonAttachable, nil
    }
    
    func (plugin *FakeVolumePlugin) CanDeviceMount(spec *volume.Spec) (bool, error) {
    	return true, nil
    }
    
    func (plugin *FakeVolumePlugin) Recycle(pvName string, spec *volume.Spec, eventRecorder recyclerclient.RecycleEventRecorder) error {
    	return nil
    }
    
    func (plugin *FakeVolumePlugin) NewDeleter(logger klog.Logger, spec *volume.Spec) (volume.Deleter, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. pkg/printers/internalversion/printers.go

    	row := metav1.TableRow{
    		Object: runtime.RawExtension{Object: obj},
    	}
    
    	name := obj.Name
    	pvName := ""
    	if obj.Spec.Source.PersistentVolumeName != nil {
    		pvName = *obj.Spec.Source.PersistentVolumeName
    	}
    	row.Cells = append(row.Cells, name, obj.Spec.Attacher, pvName, obj.Spec.NodeName, obj.Status.Attached, translateTimestampSince(obj.CreationTimestamp))
    
    	return []metav1.TableRow{row}, nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
Back to top