Skip to content

Conversation

sivchari
Copy link
Member

@sivchari sivchari commented Jul 2, 2025

What this PR does / why we need it:

Part of #11947

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 the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 2, 2025
@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-area PR is missing an area label size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 2, 2025
@sivchari sivchari force-pushed the stop-using-deprecated-status branch from 67c5a0f to 11e6e27 Compare July 2, 2025 11:12
@sivchari
Copy link
Member Author

sivchari commented Jul 2, 2025

/assign
/area provider/infrastructure-docker

@k8s-ci-robot k8s-ci-robot added area/provider/infrastructure-docker Issues or PRs related to the docker infrastructure provider and removed do-not-merge/needs-area PR is missing an area label labels Jul 2, 2025
@sivchari
Copy link
Member Author

sivchari commented Jul 2, 2025

/cc @sbueringer @fabriziopandini

@fabriziopandini fabriziopandini changed the title ⚠️ Stop using v1beta1 status in controllers ⚠️ Stop using v1beta1 status in CAPD controllers Jul 2, 2025
@sivchari
Copy link
Member Author

sivchari commented Jul 3, 2025

/retest

@sivchari sivchari force-pushed the stop-using-deprecated-status branch 3 times, most recently from df041e4 to bea06a7 Compare July 3, 2025 08:09
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 3, 2025
@sivchari sivchari force-pushed the stop-using-deprecated-status branch from bea06a7 to 17b96b2 Compare July 3, 2025 08:22
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 3, 2025
@sivchari sivchari force-pushed the stop-using-deprecated-status branch from 17b96b2 to 1565206 Compare July 3, 2025 11:01
@sbueringer sbueringer changed the title ⚠️ Stop using v1beta1 status in CAPD controllers ⚠️ Stop using v1beta1 status in MP & CAPD controllers Jul 4, 2025
@sbueringer sbueringer changed the title ⚠️ Stop using v1beta1 status in MP & CAPD controllers ⚠️ Stop using v1beta1 status in CAPD controllers Jul 4, 2025
@sivchari sivchari force-pushed the stop-using-deprecated-status branch from 1565206 to 9bbfb2a Compare July 4, 2025 06:24
@sivchari sivchari force-pushed the stop-using-deprecated-status branch from 9bbfb2a to 45d196d Compare July 4, 2025 06:32
@sbueringer
Copy link
Member

Thank you very much!!

/test pull-cluster-api-e2e-main
/lgtm

/assign @fabriziopandini

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

LGTM label has been added.

Git tree hash: 48dba1c4d6756fc4fc100fe7b679183fb13a196c

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.

Only one question from my side otherwise lgtm

Copy link
Member

Choose a reason for hiding this comment

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

I have found two other possible candidates for changes in this file, could you kindly double check?

L136: should this be condition := conditions.Get(dockerMachine, infrav1.DevMachineDockerContainerProvisionedCondition)?

L241: should this be "!conditions.Has(dockerMachine, infrav1.DevMachineDockerContainerBootstrapExecSucceededCondition) {

Copy link
Member Author

Choose a reason for hiding this comment

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

Great catch!
Thanks, fixed.

@sivchari sivchari force-pushed the stop-using-deprecated-status branch from 45d196d to b2046fd Compare July 4, 2025 08:33
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 4, 2025
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
/approve

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

LGTM label has been added.

Git tree hash: a76f8bf3c6ad5529266e8e347293bbed725a86f1

@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

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 Jul 4, 2025
@sivchari
Copy link
Member Author

sivchari commented Jul 4, 2025

/retest

@k8s-ci-robot k8s-ci-robot merged commit d50f243 into kubernetes-sigs:main Jul 4, 2025
18 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.11 milestone Jul 4, 2025
@@ -133,8 +133,8 @@ func (r *MachineBackendReconciler) ReconcileNormal(ctx context.Context, cluster
// In this case recover the information from the existing v1beta1 condition, because we do not know if
// all commands succeeded.
if !conditions.Has(dockerMachine, infrav1.DevMachineDockerContainerBootstrapExecSucceededCondition) {
condition := v1beta1conditions.Get(dockerMachine, infrav1.BootstrapExecSucceededV1Beta1Condition)
if condition == nil || condition.Status == corev1.ConditionTrue {
condition := conditions.Get(dockerMachine, infrav1.DevMachineDockerContainerBootstrapExecSucceededCondition)
Copy link
Member

Choose a reason for hiding this comment

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

I think we have to revert this one. See the godoc comment directly above

Copy link
Member

Choose a reason for hiding this comment

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

xref: #12450

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/provider/infrastructure-docker Issues or PRs related to the docker infrastructure provider 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants