fix: remove map ownerref writeback and delete maps via plan refs (#1105)

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee authored and GitHub committed 2026-08-10 18:14:48 +08:00
1 parent 72282ae50e
commit ed2b6f2551
2 files changed
+45 -36

No files matched your search

@@ -273,19 +273,6 @@ const startMigrationAction = async() => {
await plan.save();
const planOwnerRef = {
apiVersion: FORKLIFT_API_VERSION,
kind: 'Plan',
name: plan.metadata.name,
uid: plan.metadata.uid,
blockOwnerDeletion: true,
};
networkMap.metadata.ownerReferences = [planOwnerRef];
await networkMap.save();
storageMap.metadata.ownerReferences = [planOwnerRef];
await storageMap.save();
// Kick off the first migration through the model so the Migration payload
// lives in a single place (also reused by the dashboard start/restart action).
await plan.startMigration();