mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
Kubelet tests broken on Macs with uppercase names
Hostname behavior across operating systems is inconsistent (Macs can have uppercase host names, so can some other systems). In general, always strings.ToLower(os.Hostname()).
This commit is contained in:
@@ -34,5 +34,5 @@ func GetHostname(hostnameOverride string) string {
|
||||
}
|
||||
hostname = fqdn
|
||||
}
|
||||
return strings.TrimSpace(string(hostname))
|
||||
return strings.ToLower(strings.TrimSpace(string(hostname)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user