Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getNestedMountpoints (0.14 sec)

  1. pkg/volume/util/nested_volumes.go

    	"path/filepath"
    	"sort"
    	"strings"
    
    	v1 "k8s.io/api/core/v1"
    	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
    )
    
    // getNestedMountpoints returns a list of mountpoint directories that should be created
    // for the volume indicated by name.
    // note: the returned list is relative to baseDir
    func getNestedMountpoints(name, baseDir string, pod v1.Pod) ([]string, error) {
    	var retval []string
    	checkContainer := func(container *v1.Container) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 12:19:17 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  2. pkg/volume/util/nested_volumes_test.go

    		rootdir := filepath.Join(dir, "vol")
    		err = os.Mkdir(rootdir, 0755)
    		if err != nil {
    			t.Errorf("Unexpected error trying to create temp root directory: %v", err)
    			return
    		}
    
    		dirs, err := getNestedMountpoints(test.volname, rootdir, test.pod)
    		if test.err {
    			if err == nil {
    				t.Errorf("%v: expected error, got nil", test.name)
    			}
    			continue
    		} else {
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top