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

Add support for bring-your-own ip address for Services on Azure #42034

Merged
merged 1 commit into from
Mar 24, 2017

Conversation

brendandburns
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 24, 2017
@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 24, 2017
@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels Feb 24, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@colemickens
Copy link
Contributor

cc: @raveeram

@brendandburns
Copy link
Contributor Author

@k8s-bot kubemark e2e test this

return fmt.Sprintf("%s-%s", clusterName, cloudprovider.GetLoadBalancerName(service)), nil
}

list, err := az.PublicIPAddressesClient.List(az.ResourceGroup)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure we should we limit this to the existing RG?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lifted to all IP addresses in the subscription.

Copy link
Contributor

Choose a reason for hiding this comment

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

I forgot how much this is oriented around "the" resource group. This returns the public ip name, and all of the code that looks at the public ip looks for it in the current resource group. I think you have to revert the last change or make a larger change to refactor getPublicIPName to getPublicIP.

@colemickens
Copy link
Contributor

/lgtm

maybe consider looking through all public ips instead of just the current RG. I would use this functionality when available (to avoid having to update DNS as I destroy/recreate clusters)... but only if I can stash the PublicIP in a "permanent resource group" and then have it available as I destroy/create new RGs/clusters.

@k8s-ci-robot
Copy link
Contributor

@colemickens: you can't LGTM a PR unless you are an assignee.

In response to this comment:

/lgtm

maybe consider looking through all public ips instead of just the current RG. I would use this functionality when available (to avoid having to update DNS as I destroy/recreate clusters)... but only if I can stash the PublicIP in a "permanent resource group" and then have it available as I destroy/create new RGs/clusters.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@brendandburns brendandburns added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-label-needed labels Feb 24, 2017
@@ -61,10 +66,37 @@ func (az *Cloud) GetLoadBalancer(clusterName string, service *v1.Service) (statu
}, true, nil
}

func (az *Cloud) getPublicIPName(clusterName string, service *v1.Service) (string, error) {
loadBalancerIP := service.Spec.LoadBalancerIP

Choose a reason for hiding this comment

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

Would this change mean the user always has to bring his own IP? If so, it would probably be a breaking change.

Choose a reason for hiding this comment

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

Ah, nvm.

@brendandburns
Copy link
Contributor Author

comment addressed ptal.

@davidopp
Copy link
Member

I shouldn't be an OWNER in any of the cloud provider / cluster lifecycle stuff anymore. I guess the file was never updated.

@kubernetes/sig-cluster-lifecycle-pr-reviews please find an assignee for this.

@brendandburns brendandburns added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 27, 2017
@brendandburns
Copy link
Contributor Author

self-lgtm on the previous LGTM from @colemickens (and I'd like this to make the freeze)

@colemickens
Copy link
Contributor

@brendandburns I had made another inline comment. Repasting here so you see:

I forgot how much this is oriented around "the" resource group. This returns the public ip name, and all of the code that looks at the public ip looks for it in the current resource group. I think you have to revert the last change or make a larger change to refactor getPublicIPName to getPublicIP.

@brendandburns brendandburns removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 27, 2017
@brendandburns
Copy link
Contributor Author

@colemickens I reverted the ListAll part, ptal.

Thanks

@colemickens
Copy link
Contributor

Looks good to me but I'm pretty sure I can't /lgtm since I'm not the assignee (but I'll try anyway).

/lgtm

@k8s-ci-robot
Copy link
Contributor

@colemickens: you can't LGTM a PR unless you are an assignee.

In response to this comment:

Looks good to me but I'm pretty sure I can't /lgtm since I'm not the assignee (but I'll try anyway).

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, colemickens

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@colemickens
Copy link
Contributor

@k8s-bot kubemark e2e test this

@brendandburns brendandburns added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 19, 2017
@brendandburns
Copy link
Contributor Author

self-lgtm on lgtm from @colemickens and a conviction that @lavalamp doesn't care that much about the Azure cloud provider :P

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 41139, 41186, 38882, 37698, 42034)

@k8s-github-robot k8s-github-robot merged commit 264c8b4 into kubernetes:master Mar 24, 2017
k8s-github-robot pushed a commit that referenced this pull request May 17, 2017
…dbalancer

Automatic merge from submit-queue

Cherry pick azure internal loadbalancer

Backports fixes for Azure load balancer: 
- [Add support for Azure internal load balancer](#43510)
- [Add support for bring-your-own ip address for Services on Azure](#42034)

**Release note**:
```release-note
Add support for Azure internal load balancer.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants