-
Notifications
You must be signed in to change notification settings - Fork 640
🐛 Fix nil dereference when DescribeDhcpOptions call returns an error #5792
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
base: main
Are you sure you want to change the base?
🐛 Fix nil dereference when DescribeDhcpOptions call returns an error #5792
Conversation
|
/lgtm im not sure what the lint error is about. thanks for adding unit tests too! |
|
LGTM label has been added. Git tree hash: 154ea1edcd84dbdbc0a733d218c38a67985dbf87
|
Last time lint check passed was https://github.com/kubernetes-sigs/cluster-api-provider-aws/actions/runs/19889397833/job/57004172122#step:6:10. It's been failing with the same error since: |
|
I've identified the lint problem. It's golangci/golangci-lint#5641. We bumped Go version ahead of the Go version used to build golangci-lint in #5782. We'll need to bump golangci-lint to one built with Go 1.24.x. I'll file a PR. (At least this is my working theory--I'll need to confirm it 😅 ) |
damdo
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.
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damdo 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 |
|
/hold Until linitng is fixed |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This fixes a nil dereference that causes the controller to panic.
The PR has two commits. The first commit adds a (failing) test that reproduces the issue. The second commit fixes the issue.
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 #
Special notes for your reviewer:
Checklist:
Release note: