Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer... #7669

Merged
1 commit merged into from
May 5, 2015

Conversation

a-robinson
Copy link
Contributor

...which returns the IP/DNS address of the load balancer, enabling more intelligent reconciliation in the service controller.

@justinsb since this slightly modifies the interface that #5225 is implementing

…dBalancer,

which returns the IP/DNS address of the load balancer, enabling more
intelligent reconciliation in the service controller.
// determine if it matches the needs of a service rather than if it exists.
TCPLoadBalancerExists(name, region string) (bool, error)
// GetTCPLoadBalancer returns whether the specified load balancer exists, and
// if so, what its IP address or hostname is.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the "or" part of this. Can we make this a struct that has both hostname and ip and fill in one (or both) as appropriate? Also make the IP address a net.IPAddress.

We've already had pain from hostname vs. ip confusion in other part so of the stack that we had to iron out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could make the change locally to this interface, but that leads to a cascade of other things that'll also have to be changed - CreateTCPLoadBalancer, the service controller, the API itself (since publicIPs has been hacked to include the DNS address for AWS ELBs), and kube-proxy, at the very least.

If you think it's worth our time at this point, go ahead and file an issue or reopen #5224 - although you were the one that merged the PR introducing the overlap (#5228).

@a-robinson a-robinson assigned ghost May 4, 2015
@ghost
Copy link

ghost commented May 5, 2015

I share @brandandburns distaste for jamming a DNS name or IP address into a string. I'm sure @thockin would too. But I also agree with @a-robinson that this needs to be fixed holistically across the code base, as a separate PR (or PR's).

The rest of this PR LGTM. Merging.

ghost pushed a commit that referenced this pull request May 5, 2015
Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer...
@ghost ghost merged commit 8bc481d into kubernetes:master May 5, 2015
@a-robinson a-robinson deleted the lb branch June 5, 2015 01:20
@a-robinson a-robinson unassigned ghost Aug 12, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants