Skip to content

🐛 Ensure all pointer status fields are dereferenced correctly#12412

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
sbueringer:pr-ensure-pointer-deref
Jun 26, 2025
Merged

🐛 Ensure all pointer status fields are dereferenced correctly#12412
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
sbueringer:pr-ensure-pointer-deref

Conversation

@sbueringer
Copy link
Member

What this PR does / why we need it:
Audited all fields after #12410

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Follow-up to #12410

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-area PR is missing an area label labels Jun 26, 2025
@sbueringer
Copy link
Member Author

/assign @fabriziopandini @Karthik-K-N

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 26, 2025
@sbueringer sbueringer added the area/api Issues or PRs related to the APIs label Jun 26, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/needs-area PR is missing an area label label Jun 26, 2025
v.replicas = fmt.Sprintf("%d/%d", *obj.Spec.Replicas, ptr.Deref(obj.Status.Replicas, 0))
}
if obj.Status.ReadyReplicas != nil {
if obj.Status.AvailableReplicas != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

/lgtm

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

LGTM label has been added.

DetailsGit tree hash: cd06e62d84d7cc3fcc64330fec5c026159c4b7c0

Copy link
Contributor

@Karthik-K-N Karthik-K-N left a comment

Choose a reason for hiding this comment

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

I could have handled it, Missed to check.Thank you.
/lgtm

@fabriziopandini
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Jun 26, 2025
@k8s-ci-robot k8s-ci-robot merged commit 6df8e19 into kubernetes-sigs:main Jun 26, 2025
21 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.11 milestone Jun 26, 2025
@sbueringer
Copy link
Member Author

sbueringer commented Jun 26, 2025

I could have handled it, Missed to check.Thank you. /lgtm

No worries. It's super annoying work to go over all usages of all pointer status fields .. :)

@sbueringer sbueringer deleted the pr-ensure-pointer-deref branch June 26, 2025 14:39
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. area/api Issues or PRs related to the APIs 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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants