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

🐛 update TopologyReconciled condition on cluster deletion #8422

Merged
merged 1 commit into from
May 17, 2023

Conversation

cahillsf
Copy link
Member

What this PR does / why we need it:
Sets TopologyReconciled status condition to False on cluster deletion

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 #7926

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 30, 2023
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 30, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @cahillsf. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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/test-infra repository.

Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 30, 2023
@killianmuldoon
Copy link
Contributor

Thanks for this @cahillsf! Once you think this is ready can you move it out of draft and I'll review

@cahillsf
Copy link
Member Author

cahillsf commented Apr 3, 2023

sounds good, thanks @killianmuldoon. Do you think this current fix does what's required?

I believe it should address the behavior described and False seems like the correct condition to set based on the description of a False status as, on recognizing the DeletionTimestamp, the topology cluster controller stops reconciling and leaves the other controllers to perform the deletion (src link).

If you agree, then I will add a test and move it out of draft.

@killianmuldoon
Copy link
Contributor

I think you're right that marking as False with Severity Info and the reason being the cluster being deleted is the correct condition in this case.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 3, 2023
@cahillsf cahillsf marked this pull request as ready for review April 3, 2023 22:00
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 3, 2023
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 10, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 10, 2023
Copy link
Contributor

@ykakarap ykakarap left a comment

Choose a reason for hiding this comment

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

Overall LGTM.

There are lint issues in this PR.
The linter job has not been triggered for this PR as it needs approval from a maintainer to trigger it, @killianmuldoon can you approve the job?

In the mean time @cahillsf, you can run make lint locally and fix the reported issues.

LGTM pending lint fix.

internal/controllers/topology/cluster/conditions.go Outdated Show resolved Hide resolved
@cahillsf
Copy link
Member Author

@ykakarap 👋 seems the lint check has run and passed without further intervention this time around

@ykakarap
Copy link
Contributor

Thank you!

/lgtm

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

LGTM label has been added.

Git tree hash: e20f57780b386baf684db856a487208a9fb4b5da

@vincepri
Copy link
Member

/hold

can you squash commits?

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 16, 2023
@sbueringer
Copy link
Member

/lgtm

@vincepri
Copy link
Member

/hold cancel
/approve

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 16, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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 May 16, 2023
@cahillsf
Copy link
Member Author

cahillsf commented May 16, 2023

hey @vincepri 👋 thanks for taking a look -- seeing some inconsistent messaging in the test results, tide is indicating:
> Pending — Not mergeable. Job pull-cluster-api-build-main has not succeeded.

But that job (pull-cluster-api-build-main) is indicating success:
> pull-cluster-api-build-main — Job succeeded.

Am I missing something or is this unexpected behavior?

this looks to be resolved


Also seeing 1 workflow awaiting approval is this something you can approve?

@ykakarap
Copy link
Contributor

One of the maintainers will have to approve the job. @sbueringer, can you help with this?

Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

/area clusterclass

@k8s-ci-robot k8s-ci-robot added the area/clusterclass Issues or PRs related to clusterclass label May 17, 2023
@k8s-ci-robot k8s-ci-robot merged commit d8c458a into kubernetes-sigs:main May 17, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.5 milestone May 17, 2023
@cahillsf cahillsf deleted the cahillsf/dev branch May 17, 2023 17:48
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/clusterclass Issues or PRs related to clusterclass 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Topology controller should reset TopologyReconciled when deleting
7 participants