ericchiang / k8s

A simple Kubernetes Go client
Apache License 2.0
599 stars 108 forks source link

Build in-cluster url using net/url #103

Closed jsoriano closed 6 years ago

jsoriano commented 6 years ago

In-cluster server url is built concatenating host and port, this can be problematic with IPv6.

Use url.URL and net.JoinHostPort to generate the server URL.

ericchiang commented 6 years ago

lgtm, thanks!