提交 954f5a6b 编写于 作者: J Jose Donizetti

kic: fix service list for docker on osx

上级 3f34e684
......@@ -66,17 +66,18 @@ var serviceListCmd = &cobra.Command{
if len(serviceURL.URLs) == 0 {
data = append(data, []string{serviceURL.Namespace, serviceURL.Name, "No node port"})
} else {
data = append(data, []string{serviceURL.Namespace, serviceURL.Name, "", strings.Join(serviceURL.URLs, "\n")})
serviceURLs := strings.Join(serviceURL.URLs, "\n")
}
// if we are running Docker on OSX we empty the internal service URLs
if runtime.GOOS == "darwin" && cfg.Driver == oci.Docker {
serviceURLs = ""
}
}
service.PrintServiceList(os.Stdout, data)
if runtime.GOOS == "darwin" && cfg.Driver == oci.Docker {
out.FailureT("Accessing service is not implemented yet for docker driver on Mac.\nThe following issue is tracking the in progress work::\nhttps://github.com/kubernetes/minikube/issues/6778")
exit.WithCodeT(exit.Failure, "Not yet implemented for docker driver on MacOS.")
data = append(data, []string{serviceURL.Namespace, serviceURL.Name, "", serviceURLs})
}
}
service.PrintServiceList(os.Stdout, data)
},
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册