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

[release-1.17] bug: Fix APIServerLB nil pointer deref #5458

Conversation

nawazkh
Copy link
Member

@nawazkh nawazkh commented Feb 27, 2025

This is an automated manual cherry-pick of #5453.
Automated cherry-pick wont let me push to it. Automated cherry-pick: #5456

/assign nawazkh

Fixes a possible nil pointer deference when returning the name of the API Server LoadBalancer. In some cases like externally managed infrastructure, there might not be an API Server LoadBalancer in the AzureCluster CR

This commit fixes a possible nil pointer deference when returning the
name of the API Server LoadBalancer. In some cases like externally
managed infrastructure, there might not be an API Server LoadBalancer in
 the AzureCluster CR.

Signed-off-by: Bryan Cox <[email protected]>

fix incompatible APIServerLB types in cherry-picks

Signed-off-by: Nawaz Hussain Khazielakha <[email protected]>
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 27, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 27, 2025
@nawazkh
Copy link
Member Author

nawazkh commented Feb 27, 2025

/cc @willie-yao @bryan-cox

Copy link

codecov bot commented Feb 27, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 52.39%. Comparing base (22a32cd) to head (85a1d00).
Report is 3 commits behind head on release-1.17.

Files with missing lines Patch % Lines
azure/scope/cluster.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.17    #5458      +/-   ##
================================================
- Coverage         52.40%   52.39%   -0.01%     
================================================
  Files               273      273              
  Lines             29185    29189       +4     
================================================
+ Hits              15294    15295       +1     
- Misses            13090    13093       +3     
  Partials            801      801              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks!

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

LGTM label has been added.

Git tree hash: 1f40a7a5d1fd5235303590189062e2518e89756e

@bryan-cox
Copy link
Contributor

/lgtm

@nawazkh
Copy link
Member Author

nawazkh commented Feb 27, 2025

/approve

Copy link
Contributor

@willie-yao willie-yao left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nawazkh, willie-yao

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 Feb 27, 2025
@k8s-ci-robot k8s-ci-robot merged commit 02ca2f4 into kubernetes-sigs:release-1.17 Feb 27, 2025
18 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in CAPZ Planning Feb 27, 2025
@nawazkh nawazkh deleted the rel-1.17_fix_APIServerLB_nil_pointer branch February 27, 2025 21:06
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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants