Repository navigation
Add finalizer on LogicalClusterMigration while migration is in progress - #4415
Conversation
Signed-off-by: Sarthak <sarthakshreshtha345@gmail.com>
|
Hi @Sarthak-Shreshtha01. Thanks for your PR. I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test Thank you! This looks very good already |
Signed-off-by: Sarthak <sarthakshreshtha345@gmail.com>
|
/test pull-kcp-test-e2e-sharded Unrelated: |
|
LGTM label has been added. DetailsGit tree hash: 1171d7c673e6d9be26cafb6b97e61364b8913edf |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ntnn The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
A LogicalClusterMigration could be deleted while the migration was still running. The origin shard now adds a finalizer before the migration starts. The destination shard removes it when the migration is completed, and any involved shard removes it when the migration has failed, so failed migrations do not get stuck.
Added tests:
TestAddFinalizerandTestReconcile_removesFinalizerInTerminalPhases.What Type of PR Is This?
/kind feature
Related Issue(s)
Fixes #4405
Release Notes