Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for NewSpecFromVolume (0.17 sec)

  1. pkg/volume/emptydir/empty_dir.go

    	emptyDirVolume := &v1.Volume{
    		Name: volName,
    		VolumeSource: v1.VolumeSource{
    			EmptyDir: &v1.EmptyDirVolumeSource{},
    		},
    	}
    	return volume.ReconstructedVolume{
    		Spec: volume.NewSpecFromVolume(emptyDirVolume),
    	}, nil
    }
    
    // mountDetector abstracts how to find what kind of mount a path is backed by.
    type mountDetector interface {
    	// GetMountMedium determines what type of medium a given path is backed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pkg/volume/iscsi/iscsi.go

    		mountContext, err = hu.GetSELinuxMountContext(mountPath)
    		if err != nil {
    			return volume.ReconstructedVolume{}, err
    		}
    	}
    
    	return volume.ReconstructedVolume{
    		Spec:                volume.NewSpecFromVolume(iscsiVolume),
    		SELinuxMountContext: mountContext,
    	}, nil
    }
    
    func (plugin *iscsiPlugin) ConstructBlockVolumeSpec(podUID types.UID, volumeName, mapPath string) (*volume.Spec, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    		}
    		return pvc, volumeSpec, volumeGidValue, nil
    	}
    
    	// Do not return the original volume object, since the source could mutate it
    	clonedPodVolume := podVolume.DeepCopy()
    
    	spec := volume.NewSpecFromVolume(clonedPodVolume)
    	migratable, err := dswp.csiMigratedPluginManager.IsMigratable(spec)
    	if err != nil {
    		return nil, nil, "", err
    	}
    	if migratable {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_plugin.go

    	vol := &api.Volume{
    		Name: volSpecName,
    		VolumeSource: api.VolumeSource{
    			CSI: &api.CSIVolumeSource{
    				Driver: driverName,
    			},
    		},
    	}
    	return volume.NewSpecFromVolume(vol)
    }
    
    // constructPVSourceSpec constructs volume.Spec with CSIPersistentVolumeSource
    func (p *csiPlugin) constructPVSourceSpec(volSpecName, driverName, volumeHandle string) *volume.Spec {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top