For GCE, compute the external IP by using the local metadata

server. This is in many ways a revert of #7530 but after auditing
the code I found that this function is now only used to determine
an address of the node where it is currently running.
This commit is contained in:
Robert Bailey
2015-05-27 16:46:50 -07:00
parent eab1ceccd4
commit 1dfaa93ccd
2 changed files with 8 additions and 15 deletions

View File

@@ -81,6 +81,9 @@ type TCPLoadBalancer interface {
// Instances is an abstract, pluggable interface for sets of instances.
type Instances interface {
// NodeAddresses returns the addresses of the specified instance.
// TODO(roberthbailey): This currently is only used in such a way that it
// returns the address of the calling instance. We should do a rename to
// make this clearer.
NodeAddresses(name string) ([]api.NodeAddress, error)
// ExternalID returns the cloud provider ID of the specified instance.
ExternalID(name string) (string, error)