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

fix: Delete ETCDMachineSnapshot resources if their corresponding snapshot gets deleted #1067

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

yiannistri
Copy link
Contributor

What this PR does / why we need it:

Currently, when a snapshot gets deleted from the cluster, the corresponding ETCDMachineSnapshot resource is left behind with a status of Done. This PR aims to address that by removing such resources if a corresponding ETCDSnapshotFile resource is not found in the downstream cluster.

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

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@yiannistri yiannistri added kind/bug Something isn't working area/etcdsnapshot-restore Categorizes issue or PR as related to Turtles ETCD Snapshot & Restore feature labels Jan 31, 2025
@yiannistri yiannistri marked this pull request as ready for review January 31, 2025 10:56
@yiannistri yiannistri requested a review from a team as a code owner January 31, 2025 10:56
@furkatgofurov7 furkatgofurov7 merged commit 93d8c76 into rancher:main Feb 3, 2025
14 of 16 checks passed
@yiannistri yiannistri deleted the 719-delete-snapshots branch February 3, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/etcdsnapshot-restore Categorizes issue or PR as related to Turtles ETCD Snapshot & Restore feature kind/bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Delete snapshot that are already deleted from the cluster
5 participants