Skip to content

Commit

Permalink
Add ControlPlaneAgents field
Browse files Browse the repository at this point in the history
Signed-off-by: Montse Ortega <[email protected]>
  • Loading branch information
ammont82 committed Jan 9, 2025
1 parent 7a6ce76 commit c82dd3a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const DetailsForm: React.FC<DetailsFormProps> = ({ control, handleChange, contro
: 'ClusterDeployment[0].metadata.annotations["agentBareMetal-cpuArchitecture"]',
},
pullSecret: {},
controlPlaneCount: { path: 'AgentClusterInstall[0].spec.provisionRequirements.controlPlaneAgents' },
}),
[control.additionalProps?.aiFlow]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
controlPlaneCount: t("Number of control plane nodes"),
})
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export type FieldName =
| 'pullSecret'
| 'openshiftVersion'
| 'cpuArchitecture'
| 'controlPlaneCount'
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ spec:
holdInstallation: true
provisionRequirements:
workerAgents: 0
{{#if ai.controlPlaneAgents}}
controlPlaneAgents: {{{ai.controlPlaneAgents}}}
{{#if ai.controlPlaneCount}}
controlPlaneAgents: {{{ai.controlPlaneCount}}}
{{else}}
controlPlaneAgents: 3
{{/if}}
Expand Down

0 comments on commit c82dd3a

Please sign in to comment.