Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resolveRelativePaths (0.35 sec)

  1. pkg/kubelet/kubeletconfig/configfiles/configfiles.go

    	}
    
    	return utilcodec.DecodeKubeletConfigurationIntoJSON(loader.kubeletCodecs, data)
    }
    
    // resolveRelativePaths makes relative paths absolute by resolving them against `root`
    func resolveRelativePaths(paths []*string, root string) {
    	for _, path := range paths {
    		// leave empty paths alone, "no path" is a valid input
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. pkg/kubelet/kubeletconfig/configfiles/configfiles_test.go

    				t.Skip("Skipping test that fails on Windows")
    			}
    
    			// set the path, resolve it, and check if it resolved as we would expect
    			*(paths[0]) = c.path
    			resolveRelativePaths(paths, configDir)
    			if *(paths[0]) != c.expect {
    				t.Fatalf("expect %s but got %s", c.expect, *(paths[0]))
    			}
    		})
    	}
    }
    
    func newString(s string) *string {
    	return &s
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 12:18:41 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top