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

This commit is contained in:
mergify[bot] authored and GitHub committed 2026-08-10 20:58:35 +08:00
1 parent 18c973c8c4
commit d1367fc9a9
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();