-
Notifications
You must be signed in to change notification settings - Fork 431
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
Fix nil pointer exception when deleting MachinePools #4019
Conversation
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.
Good find! overall lgtm. Looks like there are some leftover debug print/log statements, can you please clean those up for merge?
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4019 +/- ##
==========================================
- Coverage 56.59% 56.57% -0.02%
==========================================
Files 187 187
Lines 19124 19130 +6
==========================================
Hits 10823 10823
- Misses 7671 7676 +5
- Partials 630 631 +1
☔ View full report in Codecov by Sentry. |
Sure thing, just wanted to make sure the tests passed before removing logs! |
f332927
to
2ce93d1
Compare
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 aside from one comment.
/cherry-pick release-1.11
/cherry-pick release-1.11 |
@nojnhuh: once the present PR merges, I will cherry-pick it on top of release-1.11 in a new PR and assign it to you. 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. |
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.
Agree, this looks good but for the added log lines.
2ce93d1
to
7c1ea6c
Compare
7c1ea6c
to
ca7964c
Compare
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
/approve
LGTM label has been added. Git tree hash: 3e45c07344e35b8de39f8f4b39918e74d97a5ffa
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nojnhuh 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 |
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
@nojnhuh: new pull request created: #4025 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. |
What type of PR is this?
/kind bug
What this PR does / why we need it: We expect the MachinePool cache to be initialized before getting the ScaleSetSpec. However, we only initialize it in reconcileNormal in azuremachinepool.go, so we have a panic trying to get the ScaleSetSpec for deletion. This fix only sets the fields using cache values if the cache is not nil to allow the spec to be available for deletion.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #4012
Special notes for your reviewer:
TODOs:
Release note: