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

Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress #2186

Merged

Conversation

gauravkghildiyal
Copy link
Member

/assign @swetharepakula

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 3, 2023
@gauravkghildiyal
Copy link
Member Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 3, 2023
@aojea
Copy link
Member

aojea commented Jul 3, 2023

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jul 3, 2023
gauravkghildiyal added a commit to gauravkghildiyal/ingress-gce that referenced this pull request Jul 3, 2023
…EGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
@gauravkghildiyal
Copy link
Member Author

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 3, 2023
@@ -44,7 +44,7 @@ func ILBSubnetSourceRange(cloud *gce.Cloud, region string) (string, error) {
if err != nil {
return "", fmt.Errorf("error comparing subnets: %v", err)
}
if subnet.Role == "ACTIVE" && subnet.Purpose == "INTERNAL_HTTPS_LOAD_BALANCER" && sameNetwork {
if subnet.Role == "ACTIVE" && (subnet.Purpose == "INTERNAL_HTTPS_LOAD_BALANCER" || subnet.Purpose == "REGIONAL_MANAGED_PROXY") && sameNetwork {
Copy link
Member

Choose a reason for hiding this comment

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

is it possible that these two subnets exist at the same time and we have to return multiple subnet.IpCidrRange?

Copy link
Member Author

Choose a reason for hiding this comment

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

That is a great question!

I don't think that's possible. Source https://cloud.google.com/load-balancing/docs/proxy-only-subnets:

"You can't have both an INTERNAL_HTTPS_LOAD_BALANCER and a REGIONAL_MANAGED_PROXY subnet in the same network and region, in the same way you can't have two REGIONAL_MANAGED_PROXY proxies or two INTERNAL_HTTPS_LOAD_BALANCER proxies."

I anyways gave it a try and couldn't create two.

@aojea
Copy link
Member

aojea commented Jul 3, 2023

/lgtm

@swetharepakula for final approval

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 3, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, gauravkghildiyal

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 3, 2023
@k8s-ci-robot k8s-ci-robot merged commit f3646a0 into kubernetes:master Jul 3, 2023
k8s-ci-robot added a commit that referenced this pull request Jul 3, 2023
Cherry-pick #2186: Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
k8s-ci-robot added a commit that referenced this pull request Jul 3, 2023
[Cherry-pick #2186] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…
k8s-ci-robot added a commit that referenced this pull request Jul 3, 2023
[Cherry-pick #2186] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…
k8s-ci-robot added a commit that referenced this pull request Jul 3, 2023
[Cherry-pick #2186] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…
gauravkghildiyal added a commit to gauravkghildiyal/ingress-gce that referenced this pull request Jul 28, 2023
gauravkghildiyal added a commit to gauravkghildiyal/ingress-gce that referenced this pull request Jul 28, 2023
gauravkghildiyal added a commit to gauravkghildiyal/ingress-gce that referenced this pull request Jul 28, 2023
…urpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress"
k8s-ci-robot added a commit that referenced this pull request Jul 28, 2023
…k-2186-1.22

Revert "[Cherry-pick #2186 -> 1.22] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY..."
k8s-ci-robot added a commit that referenced this pull request Jul 28, 2023
…k-#2186-to-1.20

Revert "Cherry-pick #2186 -> 1.20: Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress"
k8s-ci-robot added a commit that referenced this pull request Jul 28, 2023
…k-2186-1.21

Revert "[Cherry-pick #2186 -> 1.21] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…"
gauravkghildiyal added a commit to gauravkghildiyal/ingress-gce that referenced this pull request Aug 21, 2023
…ly subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress""
gauravkghildiyal added a commit to gauravkghildiyal/ingress-gce that referenced this pull request Aug 21, 2023
…nly subnet with purpose=REGIONAL_MANAGED_PROXY when ge…""
gauravkghildiyal added a commit to gauravkghildiyal/ingress-gce that referenced this pull request Aug 21, 2023
…nly subnet with purpose=REGIONAL_MANAGED_PROXY...""
k8s-ci-robot added a commit that referenced this pull request Aug 30, 2023
…0-cherry-pick-2186-1.21

[Cherry-pick #2186 -> 1.21] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
k8s-ci-robot added a commit that referenced this pull request Aug 30, 2023
[Cherry-pick #2186 -> 1.19] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
k8s-ci-robot added a commit that referenced this pull request Aug 30, 2023
…7-cherry-pick-#2186-to-1.20

Cherry-pick #2186 -> 1.20: Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
k8s-ci-robot added a commit that referenced this pull request Aug 30, 2023
…9-cherry-pick-2186-1.22

[Cherry-pick #2186 -> 1.22] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants