Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for pdName (0.13 sec)

  1. pkg/volume/util/operationexecutor/operation_executor_test.go

    			pod := getTestPodWithSecret(podName, secretName)
    			volumesToUnmount[i] = MountedVolume{
    				PodName:    volumetypes.UniquePodName(podName),
    				VolumeName: v1.UniqueVolumeName(secretName),
    				PodUID:     pod.UID,
    				VolumeSpec: tmpSpec,
    			}
    		} else {
    			pod := getTestPodWithGCEPD(podName, pdName)
    			volumesToUnmount[i] = MountedVolume{
    				PodName:    volumetypes.UniquePodName(podName),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		namespace := "mynamespace"
    		for i := 0; i < 5; i++ {
    			podName := fmt.Sprintf("%s-%d", podNamePrefix, i)
    			pod := v1.Pod{
    				Status: v1.PodStatus{
    					Phase: v1.PodRunning,
    				},
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      podName,
    					UID:       types.UID(podName),
    					Namespace: namespace,
    					Labels: map[string]string{
    						"name": podName,
    					},
    				},
    				Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    	// Assert
    	verifyPodExistsInVolumeAsw(t, podName, generatedVolumeName, "fake/device/path" /* expectedDevicePath */, asw)
    }
    
    func getTestPod(podName, podUID, outerVolumeName, pdName string) *v1.Pod {
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: podName,
    			UID:  types.UID(podUID),
    		},
    		Spec: v1.PodSpec{
    			Volumes: []v1.Volume{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go

    						GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{
    							PDName: "fake-device1",
    						},
    					},
    				},
    			},
    		},
    	}
    
    	volumeSpec := &volume.Spec{Volume: &pod.Spec.Volumes[0]}
    	podName := util.GetUniquePodName(pod)
    
    	// Act
    	generatedVolumeName, err := dsw.AddPodToVolume(
    		podName, pod, volumeSpec, volumeSpec.Name(), "" /* volumeGidValue */, nil /* seLinuxContainerContexts */)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 34K bytes
    - Viewed (0)
  5. pkg/controller/volume/attachdetach/util/util_test.go

    				},
    				Spec: v1.PodSpec{
    					Volumes: []v1.Volume{
    						{
    							Name: migratedVolume,
    							VolumeSource: v1.VolumeSource{
    								GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{
    									PDName:    "test-disk",
    									FSType:    "ext4",
    									Partition: 0,
    									ReadOnly:  false,
    								},
    							},
    						},
    					},
    				},
    			},
    			wantPersistentVolume: &v1.PersistentVolume{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 05:42:38 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions_test.go

    	volState := v1.Volume{
    		VolumeSource: v1.VolumeSource{
    			GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{
    				PDName: "foo",
    			},
    		},
    	}
    	volState2 := v1.Volume{
    		VolumeSource: v1.VolumeSource{
    			GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{
    				PDName: "bar",
    			},
    		},
    	}
    	volWithNoRestriction := v1.Volume{
    		Name:         "volume with no restriction",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions.go

    		if volume.GCEPersistentDisk != nil && existingVolume.GCEPersistentDisk != nil {
    			disk, existingDisk := volume.GCEPersistentDisk, existingVolume.GCEPersistentDisk
    			if disk.PDName == existingDisk.PDName && !(disk.ReadOnly && existingDisk.ReadOnly) {
    				return true
    			}
    		}
    
    		if volume.AWSElasticBlockStore != nil && existingVolume.AWSElasticBlockStore != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 17:40:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_volumes_test.go

    	err := kubelet.volumeManager.WaitForAttachAndMount(context.Background(), pod)
    	assert.NoError(t, err)
    
    	podName := util.GetUniquePodName(pod)
    
    	volumesToReturn, volumeExsit := kubelet.ListVolumesForPod(types.UID(podName))
    	assert.True(t, volumeExsit, "expected to find volumes for pod %q", podName)
    
    	outerVolumeSpecName1 := "vol1"
    	assert.NotNil(t, volumesToReturn[outerVolumeSpecName1], "key %s", outerVolumeSpecName1)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/nodevolumelimits/non_csi.go

    	FilterVolume: func(vol *v1.Volume) (string, bool) {
    		if vol.GCEPersistentDisk != nil {
    			return vol.GCEPersistentDisk.PDName, true
    		}
    		return "", false
    	},
    
    	FilterPersistentVolume: func(pv *v1.PersistentVolume) (string, bool) {
    		if pv.Spec.GCEPersistentDisk != nil {
    			return pv.Spec.GCEPersistentDisk.PDName, true
    		}
    		return "", false
    	},
    
    	MatchProvisioner: func(sc *storage.StorageClass) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 30 23:00:56 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  10. pkg/volume/util/operationexecutor/operation_executor.go

    	// IsOperationPending returns true if an operation for the given volumeName
    	// and one of podName or nodeName is pending, otherwise it returns false
    	IsOperationPending(volumeName v1.UniqueVolumeName, podName volumetypes.UniquePodName, nodeName types.NodeName) bool
    	// IsOperationSafeToRetry returns false if an operation for the given volumeName
    	// and one of podName or nodeName is pending or in exponential backoff, otherwise it returns true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top