From 3d0b4fca8475ce38b430bbd55fec9f825d8c5e38 Mon Sep 17 00:00:00 2001 From: Nicolas Vazquez Date: Thu, 2 Jan 2025 12:20:04 +0100 Subject: [PATCH] UI: Add cluster arch type to the zone creation wizard (#10080) * UI: Add cluster arch type to the zone creation wizard * Remove unused field * Fix github lint action * Remove unused option key --- ui/src/views/infra/zone/ZoneWizardAddResources.vue | 14 ++++++++++++++ ui/src/views/infra/zone/ZoneWizardLaunchZone.vue | 1 + 2 files changed, 15 insertions(+) diff --git a/ui/src/views/infra/zone/ZoneWizardAddResources.vue b/ui/src/views/infra/zone/ZoneWizardAddResources.vue index ef2cba1c3d9..00811ed3a10 100644 --- a/ui/src/views/infra/zone/ZoneWizardAddResources.vue +++ b/ui/src/views/infra/zone/ZoneWizardAddResources.vue @@ -192,6 +192,13 @@ export default { placeHolder: 'message.error.cluster.name', required: true }, + { + title: 'label.arch', + key: 'arch', + required: false, + select: true, + options: this.architectureTypes + }, { title: 'label.vcenter.host', key: 'vCenterHost', @@ -846,6 +853,13 @@ export default { primaryStorageScopes: [], primaryStorageProtocols: [], primaryStorageProviders: [], + architectureTypes: [{ + id: 'x86_64', + description: 'AMD 64 bits (x86_64)' + }, { + id: 'aarch64', + description: 'ARM 64 bits (aarch64)' + }], storageProviders: [], currentStep: null, options: ['primaryStorageScope', 'primaryStorageProtocol', 'provider', 'primaryStorageProvider'] diff --git a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue index e562fb33d72..01006cd0c72 100644 --- a/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue +++ b/ui/src/views/infra/zone/ZoneWizardLaunchZone.vue @@ -1283,6 +1283,7 @@ export default { if (this.isEdgeZone) { clusterName = 'Cluster-' + this.stepData.zoneReturned.name } + params.arch = this.prefillContent?.arch || null if (hypervisor === 'VMware') { params.username = this.prefillContent?.vCenterUsername || null