mirror of https://github.com/kubernetes/kops.git
Add troubleshooting statements
This commit is contained in:
parent
5074f327a2
commit
720dcb6428
|
|
@ -36,9 +36,11 @@ func (t *Tester) pretestSetup() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to get kubectl package from published releases: %s", err)
|
return fmt.Errorf("failed to get kubectl package from published releases: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
existingPath := os.Getenv("PATH")
|
existingPath := os.Getenv("PATH")
|
||||||
os.Setenv("PATH", fmt.Sprintf("%v:%v", filepath.Dir(kubectlPath), existingPath))
|
newPath := fmt.Sprintf("%v:%v", filepath.Dir(kubectlPath), existingPath)
|
||||||
return nil
|
klog.Info("Setting PATH=", newPath)
|
||||||
|
return os.Setenv("PATH", newPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Tester) Execute() error {
|
func (t *Tester) Execute() error {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue