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: remove v1 clusters for migration in post-upgrade job #1063

Merged

Conversation

salasberryfin
Copy link
Contributor

@salasberryfin salasberryfin commented Jan 29, 2025

What this PR does / why we need it:

Now that there's a single method for importing clusters via clusters.management.cattle.io (v3) and migration is automatically applied for all clusters.provisioning.cattle.io (v1) we no longer have values in the Helm chart that control when Rancher clusters deletion is applied (this is where the changes are introduced).

In this case, as reported by @cpinjani here, CAPI clusters are being un-imported after upgrade because the post-upgrade job deletes all v3 cluster resources and then the controller labels the CAPI cluster imported=true. For this to apply only for migration scenarios we should delete v1 clusters only (and eventually remove this action completely?).

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist:

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

@salasberryfin salasberryfin added kind/bug Something isn't working kind/regression Categorizes issue or PR as related to a regression from a prior release. area/chart labels Jan 29, 2025
@salasberryfin salasberryfin requested a review from a team as a code owner January 29, 2025 15:12
@kkaempf kkaempf added this to the January 2025 milestone Jan 29, 2025
Copy link
Contributor

@Danil-Grigorev Danil-Grigorev left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@furkatgofurov7 furkatgofurov7 enabled auto-merge (squash) January 29, 2025 18:51
@furkatgofurov7 furkatgofurov7 merged commit 73487cf into rancher:main Jan 29, 2025
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chart kind/bug Something isn't working kind/regression Categorizes issue or PR as related to a regression from a prior release.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants