Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestFSGroupMount (0.64 sec)

  1. pkg/volume/local/local_linux_test.go

    	pod2.Spec.SecurityContext = &v1.PodSecurityContext{
    		FSGroup: &fsGroup2,
    	}
    	err = testFSGroupMount(plug, pod1, tmpDir, fsGroup1)
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	err = testFSGroupMount(plug, pod2, tmpDir, fsGroup2)
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 2K bytes
    - Viewed (0)
  2. pkg/volume/local/local_test.go

    		}
    
    		if err := customUnmapper.TearDownDevice(globalPath, devPath); err != nil {
    			t.Errorf("TearDownDevice failed, err: %v", err)
    		}
    	}
    }
    
    func testFSGroupMount(plug volume.VolumePlugin, pod *v1.Pod, tmpDir string, fsGroup int64) error {
    	mounter, err := plug.NewMounter(getTestVolume(false, tmpDir, false, nil), pod, volume.VolumeOptions{})
    	if err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
Back to top