Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for PVName (0.1 sec)

  1. 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)
  2. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi.go

    		}
    
    		// The PVC for an ephemeral volume must be owned by the pod.
    		if isEphemeral {
    			if err := ephemeral.VolumeIsForPod(pod, pvc); err != nil {
    				return err
    			}
    		}
    
    		pvName := pvc.Spec.VolumeName
    		if pvName == "" {
    			// PVC is not bound. It was either deleted and created again or
    			// it was forcefully unbound by admin. The pod can still use the
    			// original PV where it was bound to, so we count the volume if
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  3. pkg/controller/volume/persistentvolume/pv_controller_test.go

    	}
    
    	// find the stored version
    
    	pvObj, found, err := c.GetByKey("pvName")
    	if err != nil {
    		t.Errorf("expected volume 'pvName' in the cache, got error instead: %v", err)
    	}
    	if !found {
    		t.Errorf("expected volume 'pvName' in the cache but it was not found")
    	}
    	pv, ok := pvObj.(*v1.PersistentVolume)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/binder.go

    	if len(boundClaims) == 0 {
    		return
    	}
    
    	var errs []error
    	for _, pvc := range boundClaims {
    		pvName := pvc.Spec.VolumeName
    		pv, err := b.pvCache.GetPV(pvName)
    		if err != nil {
    			errs = append(errs, err)
    			continue
    		}
    
    		// if the PersistentVolume is local and has node affinity matching specific node(s),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. pkg/apis/storage/validation/validation.go

    	if volumeAttachment.Spec.Source.PersistentVolumeName != nil {
    		pvName := *volumeAttachment.Spec.Source.PersistentVolumeName
    		for _, msg := range apivalidation.ValidatePersistentVolumeName(pvName, false) {
    			allErrs = append(allErrs, field.Invalid(field.NewPath("spec.source.persistentVolumeName"), pvName, msg))
    		}
    	}
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K 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/csi/csi_mounter_test.go

    			pv := makeTestPV("test-pv", 10, test.driver, testVol)
    			pv.Spec.CSI.VolumeAttributes = test.volumeContext
    			pv.Spec.MountOptions = []string{"foo=bar", "baz=qux"}
    			pvName := pv.GetName()
    
    			mounter, err := plug.NewMounter(
    				volume.NewSpecFromPersistentVolume(pv, pv.Spec.PersistentVolumeSource.CSI.ReadOnly),
    				&corev1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_attacher.go

    				InlineVolumeSpec: &spec.PersistentVolume.Spec,
    			}
    		} else {
    			// regular PV scenario - use PV name to populate VA source
    			pvName := spec.PersistentVolume.GetName()
    			vaSrc = storage.VolumeAttachmentSource{
    				PersistentVolumeName: &pvName,
    			}
    		}
    
    		attachment := &storage.VolumeAttachment{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: attachID,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  9. 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)
  10. pkg/volume/portworx/portworx_util.go

    	// Change the Portworx Volume name to PV name
    	if locator == nil {
    		locator = &osdapi.VolumeLocator{
    			VolumeLabels: make(map[string]string),
    		}
    	}
    	locator.Name = p.options.PVName
    
    	// Add claim Name as a part of Portworx Volume Labels
    	locator.VolumeLabels[pvcClaimLabel] = p.options.PVC.Name
    	locator.VolumeLabels[pvcNamespaceLabel] = p.options.PVC.Namespace
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
Back to top