Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for volumePath (0.25 sec)

  1. pkg/volume/secret/secret_test.go

    		t.Fatalf("Got a nil Mounter")
    	}
    
    	volumePath := mounter.GetPath()
    	if !hasPathSuffix(volumePath, "pods/test_pod_uid/volumes/kubernetes.io~secret/test_volume_name") {
    		t.Errorf("Got unexpected path: %s", volumePath)
    	}
    
    	err = mounter.SetUp(volume.MounterArgs{})
    	if err != nil {
    		t.Errorf("Failed to setup volume: %v", err)
    	}
    	if _, err := os.Stat(volumePath); err != nil {
    		if os.IsNotExist(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 19.5K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_volumes_linux_test.go

    			prepareFunc: func(kubelet *Kubelet) error {
    				podDir := kubelet.getPodDir("pod1uid")
    				volumePath := filepath.Join(podDir, "volumes/plugin/name")
    				if err := os.MkdirAll(volumePath, 0750); err != nil {
    					return err
    				}
    				return os.WriteFile(filepath.Join(volumePath, "test.txt"), []byte("test1"), 0640)
    			},
    			validateFunc: func(kubelet *Kubelet) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  3. pkg/volume/util/subpath/subpath_windows_test.go

    	defer os.RemoveAll(testingVolumePath)
    
    	tests := []struct {
    		volumePath    string
    		subPath       string
    		expectError   bool
    		symlinkTarget string
    	}{
    		{
    			volumePath:    testingVolumePath,
    			subPath:       ``,
    			expectError:   true,
    			symlinkTarget: "",
    		},
    		{
    			volumePath:    testingVolumePath,
    			subPath:       filepath.Join(testingVolumePath, `x`),
    			expectError:   false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 13.8K bytes
    - Viewed (0)
  4. pkg/volume/projected/projected_test.go

    	}
    	if _, err := os.Stat(volumePath); err != nil {
    		if os.IsNotExist(err) {
    			t.Errorf("SetUp() failed, volume path not created: %s", volumePath)
    		} else {
    			t.Errorf("SetUp() failed: %v", err)
    		}
    	}
    
    	doTestSecretDataInVolume(volumePath, secret, t)
    	doTestCleanAndTeardown(plugin, testPodUID, testVolumeName, volumePath, t)
    }
    
    func TestPluginOptional(t *testing.T) {
    	var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  5. pkg/volume/configmap/configmap_test.go

    	}
    	if _, err := os.Stat(volumePath); err != nil {
    		if os.IsNotExist(err) {
    			t.Errorf("SetUp() failed, volume path not created: %s", volumePath)
    		} else {
    			t.Errorf("SetUp() failed: %v", err)
    		}
    	}
    
    	doTestConfigMapDataInVolume(volumePath, configMap, t)
    	doTestCleanAndTeardown(plugin, testPodUID, testVolumeName, volumePath, t)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  6. pkg/volume/util/subpath/subpath_windows.go

    	}
    
    	return lockAndCheckSubPathWithoutSymlink(finalVolumePath, finalSubPath)
    }
    
    // lock all intermediate subPath directories and check they are all within volumePath
    // volumePath & subPath should not contain any symlink, otherwise it will return error
    func lockAndCheckSubPathWithoutSymlink(volumePath, subPath string) ([]uintptr, error) {
    	if len(volumePath) == 0 || len(subPath) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. pkg/volume/downwardapi/downwardapi_test.go

    		} else {
    			t.Errorf("SetUp() failed: %v", err)
    		}
    	}
    
    	return &downwardAPITest{
    		t:          t,
    		plugin:     plugin,
    		pod:        pod,
    		mounter:    mounter,
    		volumePath: volumePath,
    		rootDir:    rootDir,
    	}
    }
    
    func (test *downwardAPITest) tearDown() {
    	unmounter, err := test.plugin.NewUnmounter(test.name, testPodUID)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 04:48:49 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  8. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    			os.MkdirAll(tmpKubeletPodDir, 0755)
    
    			mountPaths := []string{}
    
    			// create pod and volume directories so as reconciler can find them.
    			for _, volumePath := range tc.volumePaths {
    				vp := filepath.Join(tmpKubeletPodDir, volumePath)
    				mountPaths = append(mountPaths, vp)
    				os.MkdirAll(vp, 0755)
    			}
    
    			rc, fakePlugin := getReconciler(tmpKubeletDir, t, mountPaths, nil /*custom kubeclient*/)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    				for _, volumeName := range volumePluginDirs {
    					volumePath := filepath.Join(volumePluginPath, volumeName)
    					klog.V(5).InfoS("Volume path from volume plugin directory", "podName", podName, "volumePath", volumePath)
    					volumes = append(volumes, podVolume{
    						podName:        volumetypes.UniquePodName(podName),
    						volumeSpecName: volumeName,
    						volumePath:     volumePath,
    						pluginName:     unescapePluginName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. pkg/volume/nfs/nfs_test.go

    	}
    	if mounter == nil {
    		t.Errorf("Got a nil Mounter")
    	}
    	volumePath := mounter.GetPath()
    	expectedPath := filepath.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~nfs/vol1")
    	if volumePath != expectedPath {
    		t.Errorf("Unexpected path, expected %q, got: %q", expectedPath, volumePath)
    	}
    	if err := mounter.SetUp(volume.MounterArgs{}); err != nil {
    		t.Errorf("Expected success, got: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 9K bytes
    - Viewed (0)
Back to top