mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
commit
c33a5d6c1b
@ -131,10 +131,7 @@ func (rs *REST) ResourceLocation(ctx api.Context, id string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
host := minion.Status.HostIP
|
||||
if host == "" {
|
||||
host = minion.Name
|
||||
}
|
||||
host := minion.Name
|
||||
// TODO: Minion webservers should be secure!
|
||||
return "http://" + net.JoinHostPort(host, strconv.Itoa(ports.KubeletPort)), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user