Skip to content

Comments

🐛 Fix bug while setting status for deprecated fields#13336

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
Karthik-K-N:fix-bug
Feb 17, 2026
Merged

🐛 Fix bug while setting status for deprecated fields#13336
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
Karthik-K-N:fix-bug

Conversation

@Karthik-K-N
Copy link
Contributor

What this PR does / why we need it:

While setting the deprecated conditions for object where the deprecated condition field is not in standard path (status.deprecated.v1beta1) but instead at different path(status.deprecated.v1beta2) for whatsoever reason we end up hitting below error

E0212 16:37:14.665519      15 controller.go:474] "Reconciler error" err="failed to init patch helper: failed to identify condition fields for object default/ibm-powervs-1-control-plane-lt47g: obj.status.deprecated.v1beta1 must be a pointer" controller="ibmpowervsmachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="IBMPowerVSMachine" IBMPowerVSMachine="default/ibm-powervs-1-control-plane-lt47g" namespace="default" name="ibm-powervs-1-control-plane-lt47g" reconcileID="e0b8bb3c-68c5-4fda-912d-0d053aee6ebc"

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 #

@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-area PR is missing an area label size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 13, 2026
@Karthik-K-N
Copy link
Contributor Author

/cc @sbueringer

@sivchari
Copy link
Member

Thx!
/lgtm

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

LGTM label has been added.

DetailsGit tree hash: dabd5e8a80a14f6d1efaf914cdfc88334ffc828d

@sbueringer sbueringer added the area/misc Issues or PRs not related to any other area label Feb 17, 2026
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/needs-area PR is missing an area label label Feb 17, 2026
@sbueringer
Copy link
Member

sbueringer commented Feb 17, 2026

Makes sense, thank you!

Please note that while this fix makes sense, it won't lead to patchHelper detecting v1beta2 paths correctly.

I think you have to additionally pass in the Metav1ConditionsFieldPath & Clusterv1ConditionsFieldPath options (which might be already your plan anyway :))

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 Feb 17, 2026
@sbueringer
Copy link
Member

/cherry-pick release-1.12

@sbueringer
Copy link
Member

/cherry-pick release-1.11

@k8s-infra-cherrypick-robot

@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.12 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-1.12

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-sigs/prow repository.

@k8s-infra-cherrypick-robot

@sbueringer: 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.

Details

In response to this:

/cherry-pick release-1.11

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot merged commit 89e719e into kubernetes-sigs:main Feb 17, 2026
21 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.13 milestone Feb 17, 2026
@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #13344

Details

In response to this:

/cherry-pick release-1.12

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-sigs/prow repository.

@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #13345

Details

In response to this:

/cherry-pick release-1.11

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-sigs/prow repository.

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/misc Issues or PRs not related to any other area 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants