Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getUniqueVolumeName (0.15 sec)

  1. pkg/volume/util/util.go

    	return windowsPath
    }
    
    // GetUniquePodName returns a unique identifier to reference a pod by
    func GetUniquePodName(pod *v1.Pod) types.UniquePodName {
    	return types.UniquePodName(pod.UID)
    }
    
    // GetUniqueVolumeName returns a unique name representing the volume/plugin.
    // Caller should ensure that volumeName is a name/ID uniquely identifying the
    // actual backing device, directory, path, etc. for a particular volume.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go

    	if volumeSpec.PersistentVolume == nil || volumeSpec.InlineVolumeSpecForCSIMigration || pvc == nil {
    		// Only PVC supports resize operation.
    		return
    	}
    
    	uniqueVolumeName, exist := getUniqueVolumeName(uniquePodName, podVolume.Name, mountedVolumesForPod)
    	if !exist {
    		// Volume not exist in ASW, we assume it hasn't been mounted yet. If it needs resize,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. pkg/volume/testing/testing.go

    	TearDownDeviceCallCount     int
    	MapPodDeviceCallCount       int
    	UnmapPodDeviceCallCount     int
    	GlobalMapPathCallCount      int
    	PodDeviceMapPathCallCount   int
    }
    
    func getUniqueVolumeName(spec *volume.Spec) (string, error) {
    	var volumeName string
    	if spec.Volume != nil && spec.Volume.GCEPersistentDisk != nil {
    		volumeName = spec.Volume.GCEPersistentDisk.PDName
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/cache/desired_state_of_world.go

    		klog.V(4).ErrorS(err, "failed to get CSI driver name from volume spec")
    		driverName = "unknown"
    	}
    	// `/` is used to separate plugin + CSI driver in util.GetUniqueVolumeName() too
    	return pluginName + "/" + driverName
    }
    
    func getVolumeAccessMode(spec *volume.Spec) string {
    	if spec.PersistentVolume == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    					},
    				},
    			},
    		},
    	}
    
    	volumeSpec1 := &volume.Spec{Volume: &pod.Spec.Volumes[0]}
    	volumeName1 := util.GetUniqueVolumeName(fakePlugin.GetPluginName(), "fake-device1")
    	volumeSpec2 := &volume.Spec{Volume: &pod.Spec.Volumes[1]}
    	volumeName2 := util.GetUniqueVolumeName(fakePlugin.GetPluginName(), "fake-device2")
    
    	assert.NoError(t, asw.AddAttachUncertainReconstructedVolume(volumeName1, volumeSpec1, nodeName, ""))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
Back to top