From 4883ecddc3020005ce1285e3ba18f79735bc5193 Mon Sep 17 00:00:00 2001 From: Elay Aharoni Date: Thu, 29 May 2025 18:40:45 +0300 Subject: [PATCH] Not correct number of CPs on cluster details page when trying to continue draft cluster configuration Signed-off-by: Elay Aharoni --- .../ClusterDeployment/ClusterDeploymentDetailsForm.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx b/libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx index 73be0b8cae..560204235c 100644 --- a/libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +++ b/libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx @@ -112,7 +112,9 @@ const ClusterDeploymentDetailsForm: React.FC const [cpuArchitectures, allowHighlyAvailable] = React.useMemo(() => { const cpuArchitectures = [CpuArchitecture.x86, CpuArchitecture.ARM, CpuArchitecture.s390x]; - const version = allVersions.find((ver) => ver.value === values.openshiftVersion); + const version = allVersions.find( + (ver) => ver.value === values.openshiftVersion || ver.version === forceOpenshiftVersion, + ); const isMulti = version?.cpuArchitectures?.[0] === CpuArchitecture.MULTI; const highlyAvailableSupported = toNumber(version?.version?.split('.')?.[1]) >= 18; @@ -120,7 +122,7 @@ const ClusterDeploymentDetailsForm: React.FC (isMulti ? cpuArchitectures : version?.cpuArchitectures) as SupportedCpuArchitecture[], highlyAvailableSupported && !isMulti, ]; - }, [allVersions, values.openshiftVersion]); + }, [allVersions, forceOpenshiftVersion, values.openshiftVersion]); return ( <>