From a9fb5b8fe3490570ae6565932062f770e0774c4d Mon Sep 17 00:00:00 2001 From: Montse Ortega Date: Wed, 8 Jan 2025 13:38:23 +0100 Subject: [PATCH] Add ControlPlaneAgents field Signed-off-by: Montse Ortega --- .../CreateCluster/components/assisted-installer/DetailsForm.tsx | 1 + .../components/assisted-installer/hypershift/utils.ts | 1 + .../CreateCluster/components/assisted-installer/types.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/DetailsForm.tsx b/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/DetailsForm.tsx index 01c4909bad3..ecee6680996 100644 --- a/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/DetailsForm.tsx +++ b/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/DetailsForm.tsx @@ -146,6 +146,7 @@ const DetailsForm: React.FC = ({ control, handleChange, contro : 'ClusterDeployment[0].metadata.annotations["agentBareMetal-cpuArchitecture"]', }, pullSecret: {}, + controlPlaneAgents: { path: 'AgentClusterInstall[0].spec.provisionRequirements.controlPlaneAgents' }, }), [control.additionalProps?.aiFlow] ) diff --git a/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/hypershift/utils.ts b/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/hypershift/utils.ts index 13e7fb0d27b..d7f58212ab9 100644 --- a/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/hypershift/utils.ts +++ b/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/hypershift/utils.ts @@ -31,4 +31,5 @@ export const getFieldLabels = (t: TFunction): Partial<{ [K in FieldName]: string pullSecret: t('Pull secret'), openshiftVersion: t('OpenShift version'), cpuArchitecture: t('CPU architecture'), + controlPlaneAgents: t("Number of control plane nodes"), }) diff --git a/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/types.ts b/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/types.ts index d51b2c811d3..4b1c8774f52 100644 --- a/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/types.ts +++ b/frontend/src/routes/Infrastructure/Clusters/ManagedClusters/CreateCluster/components/assisted-installer/types.ts @@ -14,3 +14,4 @@ export type FieldName = | 'pullSecret' | 'openshiftVersion' | 'cpuArchitecture' + | 'controlPlaneAgents'