Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for csiDriverName (0.17 sec)

  1. pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

    		return err
    	}
    
    	hasModified := false
    	// Uninstall CSINodeDriver with name csiDriverName
    	drivers := nodeInfo.Spec.Drivers[:0]
    	for _, driver := range nodeInfo.Spec.Drivers {
    		if driver.Name != csiDriverName {
    			drivers = append(drivers, driver)
    		} else {
    			// Found a driver with name csiDriverName
    			// Set hasModified to true because it will be removed
    			hasModified = true
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_plugin.go

    		pod:                 pod,
    		podUID:              pod.UID,
    		driverName:          csiDriverName(driverName),
    		volumeLifecycleMode: volumeLifecycleMode,
    		volumeID:            volumeHandle,
    		specVolumeID:        spec.Name(),
    		readOnly:            readOnly,
    		kubeVolHost:         kvh,
    	}
    	mounter.csiClientGetter.driverName = csiDriverName(driverName)
    
    	dir := mounter.GetPath()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher.go

    	return nil
    }
    
    // getAttachmentName returns csi-<sha256(volName,csiDriverName,NodeName)>
    func getAttachmentName(volName, csiDriverName, nodeName string) string {
    	result := sha256.Sum256([]byte(fmt.Sprintf("%s%s%s", volName, csiDriverName, nodeName)))
    	return fmt.Sprintf("csi-%x", result)
    }
    
    func makeDeviceMountPath(plugin *csiPlugin, spec *volume.Spec) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_client.go

    }
    
    // Strongly typed address
    type csiAddr string
    
    // Strongly typed driver name
    type csiDriverName string
    
    // csiClient encapsulates all csi-plugin methods
    type csiDriverClient struct {
    	driverName          csiDriverName
    	addr                csiAddr
    	metricsManager      *MetricsManager
    	nodeV1ClientCreator nodeV1ClientCreator
    }
    
    type csiResizeOptions struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_metrics.go

    	volumeID string
    
    	//csiClient with cache
    	csiClientGetter
    }
    
    // NewMetricsCsi creates a new metricsCsi with the Volume ID and path.
    func NewMetricsCsi(volumeID string, targetPath string, driverName csiDriverName) volume.MetricsProvider {
    	mc := &metricsCsi{volumeID: volumeID, targetPath: targetPath}
    	mc.csiClientGetter.driverName = driverName
    	return mc
    }
    
    func (mc *metricsCsi) GetMetrics() (*volume.Metrics, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. pkg/volume/csi/expander.go

    	if err != nil {
    		return false, errors.New(log("Expander.NodeExpand failed to get CSI persistent source: %v", err))
    	}
    
    	csClient, err := newCsiDriverClient(csiDriverName(csiSource.Driver))
    	if err != nil {
    		// Treat the absence of the CSI driver as a transient error
    		// See https://github.com/kubernetes/kubernetes/issues/120268
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 17:23:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/pv_controller_base.go

    		csiDriverName, err = translator.GetCSINameFromInTreeName(provisioner)
    		if err != nil {
    			logger.Error(err, "Could not update volume migration annotations. Migration enabled for plugin but could not find corresponding driver name", "plugin", provisioner)
    			return false
    		}
    		if migratedToDriver != csiDriverName {
    			ann[storagehelpers.AnnMigratedTo] = csiDriverName
    			return true
    		}
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_mounter.go

    		"volumeLifecycleMode",
    		"seLinuxMountContext",
    	}
    )
    
    type csiMountMgr struct {
    	csiClientGetter
    	k8s                 kubernetes.Interface
    	plugin              *csiPlugin
    	driverName          csiDriverName
    	volumeLifecycleMode storage.VolumeLifecycleMode
    	volumeID            string
    	specVolumeID        string
    	readOnly            bool
    	needSELinuxRelabel  bool
    	spec                *volume.Spec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_block.go

    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    	utilstrings "k8s.io/utils/strings"
    )
    
    type csiBlockMapper struct {
    	csiClientGetter
    	k8s        kubernetes.Interface
    	plugin     *csiPlugin
    	driverName csiDriverName
    	specName   string
    	volumeID   string
    	readOnly   bool
    	spec       *volume.Spec
    	pod        *v1.Pod
    	podUID     types.UID
    	volume.MetricsProvider
    }
    
    var _ volume.BlockVolumeMapper = &csiBlockMapper{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_mounter_test.go

    			}
    		})
    	}
    }
    
    func Test_csiMountMgr_supportsFSGroup(t *testing.T) {
    	type fields struct {
    		plugin              *csiPlugin
    		driverName          csiDriverName
    		volumeLifecycleMode storage.VolumeLifecycleMode
    		volumeID            string
    		specVolumeID        string
    		readOnly            bool
    		supportsSELinux     bool
    		spec                *volume.Spec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
Back to top