mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Fix e2e.
This commit is contained in:
parent
4845e524af
commit
33b3c1b8ce
@ -131,10 +131,7 @@ func (rs *REST) ResourceLocation(ctx api.Context, id string) (string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
host := minion.Status.HostIP
|
host := minion.Name
|
||||||
if host == "" {
|
|
||||||
host = minion.Name
|
|
||||||
}
|
|
||||||
// TODO: Minion webservers should be secure!
|
// TODO: Minion webservers should be secure!
|
||||||
return "http://" + net.JoinHostPort(host, strconv.Itoa(ports.KubeletPort)), nil
|
return "http://" + net.JoinHostPort(host, strconv.Itoa(ports.KubeletPort)), nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user