Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSourceFromSpec (0.25 sec)

  1. pkg/volume/csi/csi_plugin.go

    	}
    	return *csiDriver.Spec.RequiresRepublish
    }
    
    func (p *csiPlugin) NewMounter(
    	spec *volume.Spec,
    	pod *api.Pod,
    	_ volume.VolumeOptions) (volume.Mounter, error) {
    
    	volSrc, pvSrc, err := getSourceFromSpec(spec)
    	if err != nil {
    		return nil, err
    	}
    
    	var (
    		driverName   string
    		volumeHandle string
    		readOnly     bool
    	)
    
    	switch {
    	case volSrc != nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_mounter.go

    	}
    
    	ctx, cancel := createCSIOperationContext(c.spec, csiTimeout)
    	defer cancel()
    
    	volSrc, pvSrc, err := getSourceFromSpec(c.spec)
    	if err != nil {
    		return errors.New(log("mounter.SetupAt failed to get CSI persistent source: %v", err))
    	}
    
    	// Check CSIDriver.Spec.Mode to ensure that the CSI driver
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (1)
Back to top