From d075871afc2b96dc4b11110fedbda966ff18073e Mon Sep 17 00:00:00 2001 From: Marcelo Fukumoto Date: Fri, 15 May 2026 17:04:03 +0200 Subject: [PATCH] feat(forklift): Changed based on review Signed-off-by: Marcelo Fukumoto --- pkg/harvester/config/harvester-cluster.js | 2 +- pkg/harvester/l10n/en-us.yaml | 10 +- .../_cluster/forklift/configure-mappings.vue | 182 +++++++++++++++--- .../_cluster/forklift/configure-provider.vue | 181 +++++++++++++++-- .../pages/c/_cluster/forklift/index.vue | 2 + .../c/_cluster/forklift/review-migration.vue | 160 +++++++++++---- .../pages/c/_cluster/forklift/select-vms.vue | 10 +- 7 files changed, 448 insertions(+), 99 deletions(-) diff --git a/pkg/harvester/config/harvester-cluster.js b/pkg/harvester/config/harvester-cluster.js index d5a06fda..856990e8 100644 --- a/pkg/harvester/config/harvester-cluster.js +++ b/pkg/harvester/config/harvester-cluster.js @@ -1468,7 +1468,7 @@ export function init($plugin, store) { configureType('forklift-create', { subTypes: [HCI.FORKLIFT_PLAN] }); virtualType({ name: 'forklift-create', - labelKey: 'harvester.addons.forklift.labels.plan', + labelKey: 'harvester.addons.forklift.labels.dashboard', group: 'forklift', namespaced: true, route: { diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index ba5ae29d..38583277 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1809,7 +1809,7 @@ harvester: forklift: labels: - dashboard: Create + dashboard: Migrations provider: Providers networkMap: Network Maps storageMap: Storage Maps @@ -1822,6 +1822,8 @@ harvester: title: Configure Provider description: Connect to your VMware vCenter or ESXi host to discover virtual machines for migration connectionDetails: Connection Details + providerSelect: Provider + createNew: Create new provider requirementsTitle: Requirements requirementsText: "To migrate virtual machines from VMWare, you will need a vCenter Server running version 6.5 or higher with a user account that has at least read permissions, and the source environment must be network-accessible from Rancher." name: Name @@ -1836,6 +1838,7 @@ harvester: testMissingFields: Please fill in all required fields before testing testTimeout: Connection test timed out — the provider did not report a status in time save: Save Provider and Continue + saveExisting: Check Provider and Continue selectVms: title: Select Virtual Machines discovered: "{count} VMs discovered from" @@ -1872,17 +1875,22 @@ harvester: title: Set Mappings description: Map VMware networks and datastores to Harvester and Longhorn target resources save: Save Mappings and Continue + noTemplate: Start from scratch networkMapping: title: Network Mapping description: Map VMware port groups to Harvester networks placeholder: Choose a Harvester network... + template: Use existing network mapping as template storageMapping: title: Storage Mapping description: Map VMware datastores to Harvester storage classes placeholder: Choose a Longhorn Storage Volume + template: Use existing storage mapping as template reviewMigration: title: Review Migration Plan description: Confirm your migration settings before starting the transfer of VMs to the target cluster. + planName: Name + planNamePlaceholder: "e.g. my-migration-plan" migrationDetails: Migration Details totalVms: Total VMs vcpu: vCPU diff --git a/pkg/harvester/pages/c/_cluster/forklift/configure-mappings.vue b/pkg/harvester/pages/c/_cluster/forklift/configure-mappings.vue index b35b7b35..2c9ef20d 100644 --- a/pkg/harvester/pages/c/_cluster/forklift/configure-mappings.vue +++ b/pkg/harvester/pages/c/_cluster/forklift/configure-mappings.vue @@ -1,5 +1,5 @@