Allow cloud providers to return a node identifier different from the hostname

This commit is contained in:
Justin Santa Barbara
2015-06-12 11:42:38 -04:00
parent c28cdfbd43
commit efaead81dc
11 changed files with 64 additions and 1 deletions

View File

@@ -1849,6 +1849,7 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error {
}
// TODO(roberthbailey): Can we do this without having credentials to talk
// to the cloud provider?
// TODO(justinsb): We can if CurrentNodeName() was actually CurrentNode() and returned an interface
nodeAddresses, err := instances.NodeAddresses(kl.nodeName)
if err != nil {
return fmt.Errorf("failed to get node address from cloud provider: %v", err)