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

This commit is contained in:
mergify[bot]
2026-08-10 20:58:35 +08:00
committed by GitHub
parent 18c973c8c4
commit d1367fc9a9
2 changed files with 45 additions and 36 deletions
@@ -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();