disable kubelet local endpoints on windows

This commit is contained in:
David Ashpole
2019-06-04 14:07:10 -07:00
parent 8657b24d86
commit 80ed28b15b
5 changed files with 17 additions and 13 deletions

View File

@@ -128,10 +128,10 @@ func parseEndpoint(endpoint string) (string, string, error) {
}
// LocalEndpoint returns the full path to a unix socket at the given endpoint
func LocalEndpoint(path, file string) string {
func LocalEndpoint(path, file string) (string, error) {
u := url.URL{
Scheme: unixProtocol,
Path: path,
}
return filepath.Join(u.String(), file+".sock")
return filepath.Join(u.String(), file+".sock"), nil
}