-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azure: fix null pointer when updating in place cluster #11015
azure: fix null pointer when updating in place cluster #11015
Conversation
Hi @collin-woodruff-t1cg. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
c97d99a
to
2d9a0a3
Compare
2d9a0a3
to
8dfc88c
Compare
@kenji-cloudnatix maybe you have some thoughts on this. |
Thanks for making the change, @collin-woodruff-t1cg ! Could you explain where the null pointer access is happening? Is this coming from |
yeah the null pointer is happening on line 185 with |
although thinking about it now if we don't use a loadbalancer this issue will still be prevelant on the master at that point... |
Ah I see. Thanks! So I believe the right fix is to remove if ipConfig.LoadBalancerBackendAddressPools != nil { The type of |
8dfc88c
to
4670068
Compare
I gotcha. i just tested that on my end and i no longer receive the null pointer error. Thanks @kenji-cloudnatix! |
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.
Looks good to me! Thanks!
@kenji-cloudnatix: changing LGTM is restricted to collaborators 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/test-infra repository. |
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kenji-cloudnatix, rifelpet 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 |
…15-origin-release-1.20 Automated cherry pick of #11015: azure: fix null pointer when updating in place cluster
Null pointer exception occurs when trying to update cluster in place on azure. This occurs because other virtual machine scale sets aside from the master do not have backend loadbalancer pools.
This checks to make sure that the name of the scale set contains "masters" to differentiate between the master and other virtual machine scale sets.