-
Notifications
You must be signed in to change notification settings - Fork 301
fix: Remove managed pip if switched to another pip in a different res… #8419
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
Conversation
a31b322 to
e2f5b3b
Compare
|
/retest pull-cloud-provider-azure-e2e-ccm-capz\ |
|
@nilo19: The Use In response to this:
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-sigs/prow repository. |
|
/test pull-cloud-provider-azure-e2e-ccm-capz |
e2f5b3b to
cbca9f8
Compare
|
/test pull-cloud-provider-azure-e2e-ccm-vmss-ip-lb-capz |
|
/retest |
| pipID := strings.ToLower((ptr.Deref(pipCopy.ID, ""))) | ||
| rg, err := getPIPRGFromID(pipID) | ||
| if err != nil { | ||
| logger.Error(err, "Failed to get resource group from PIP ID", "pip-id", pipID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return err here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
pkg/provider/azure_loadbalancer.go
Outdated
| // reconcilePublicIPs reconciles the PublicIP resources similar to how the LB is reconciled. | ||
| func (az *Cloud) reconcilePublicIPs(ctx context.Context, clusterName string, service *v1.Service, lbName string, wantLb bool) ([]*armnetwork.PublicIPAddress, error) { | ||
| logger := klog.FromContext(ctx).WithName("reconcilePublicIPs"). | ||
| WithValues("load-balancer", lbName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about using the same log format for those keys, e.g. loadBalancer, resourceGroup (in the following lines)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
/retest |
feiskyer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer, nilo19 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 |
|
/retest |
|
/cherrypick release-1.32 |
|
/cherrypick release-1.31 |
|
/cherrypick release-1.30 |
|
/cherrypick release-1.29 |
|
@nilo19: #8419 failed to apply on top of branch "release-1.31": In response to this:
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-sigs/prow repository. |
|
@nilo19: new pull request created: #8516 In response to this:
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-sigs/prow repository. |
|
@nilo19: #8419 failed to apply on top of branch "release-1.30": In response to this:
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-sigs/prow repository. |
|
@nilo19: #8419 failed to apply on top of branch "release-1.29": In response to this:
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-sigs/prow repository. |
…ource group
What type of PR is this?
/kind bug
What this PR does / why we need it:
We should remove managed pip when the service switches to a different pip in another resource group.
Which issue(s) this PR fixes:
Fixes #8113
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: