mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #117141 from dims/specify-kube-root-for-test-e2e-node/AWS
Specify kube root for test-e2e-node/aws to work
This commit is contained in:
commit
162485fda3
@ -27,6 +27,11 @@ import (
|
||||
|
||||
// GetK8sRootDir returns the root directory for kubernetes, if present in the gopath.
|
||||
func GetK8sRootDir() (string, error) {
|
||||
dir := os.Getenv("KUBE_ROOT")
|
||||
if len(dir) > 0 {
|
||||
return dir, nil
|
||||
}
|
||||
|
||||
dir, err := RootDir()
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
Loading…
Reference in New Issue
Block a user