-
Notifications
You must be signed in to change notification settings - Fork 96
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: using ownerRef to control the removal of storageversionmigrations. #342
🐛 Fix: using ownerRef to control the removal of storageversionmigrations. #342
Conversation
Signed-off-by: xuezhaojun <[email protected]>
/assign @qiujian16 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #342 +/- ##
==========================================
- Coverage 61.75% 61.52% -0.24%
==========================================
Files 132 133 +1
Lines 13992 14189 +197
==========================================
+ Hits 8641 8730 +89
- Misses 4585 4691 +106
- Partials 766 768 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
but the clustermanager will not be removed during upgrade, only uninstall will remove cluster manager. Is it what you are expecting? |
Yes, keep them won't harm anything. This PR just make sure when we uninstall clustermanager, everything we installed will be cleaned up. Whether we want change to "removing migrations during the upgrade", I think it's worth further discuession combined with other migrations topics like CRDs of addons. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, xuezhaojun 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 |
4b6e12a
into
open-cluster-management-io:main
Summary
When create a StorageVersionMigration, using the cluster-manager as the ownerReference. When cluster-manager is removed, all Migrations will also be removed.
Related issue(s)
Previously, it uses a remove function that depending on:
ocm/pkg/operator/operators/clustermanager/controllers/migrationcontroller/migration_controller.go
Line 52 in 40135fd
From release to release the files list are changed, but during the upgrade the cluster-manager keep exisitng, so that old storageversionmigration CRs won't get removed ever.
Fixes #