feat(xo-web/recipes/kubernetes): CIDR is no longer necessary (#6583)

Related to 6227349725
This commit is contained in:
Gabriel Gunullu
2022-12-19 09:42:56 +01:00
committed by GitHub
parent f95a20173c
commit a1d63118c0
4 changed files with 1 additions and 18 deletions

View File

@@ -5671,9 +5671,6 @@ export default {
// Original text: 'SSH key'
recipeSshKeyLabel: 'Chiave SSH',
// Original text: 'Network CIDR'
recipeNetworkCidr: 'Rete CIDR',
// Original text: 'Action/Event'
auditActionEvent: 'Azione/Evento',

View File

@@ -2392,7 +2392,6 @@ const messages = {
recipeMasterNameLabel: 'Master name',
recipeNumberOfNodesLabel: 'Number of nodes',
recipeSshKeyLabel: 'SSH key',
recipeNetworkCidr: 'Network CIDR',
// Audit
auditActionEvent: 'Action/Event',

View File

@@ -112,18 +112,6 @@ export default decorate([
value={value.sshKey}
/>
</FormGrid.Row>
<FormGrid.Row>
<label>{_('recipeNetworkCidr')}</label>
<input
className='form-control'
name='cidr'
onChange={effects.onChangeValue}
placeholder={formatMessage(messages.recipeNetworkCidr)}
required
type='text'
value={value.cidr}
/>
</FormGrid.Row>
</Container>
),
])

View File

@@ -51,11 +51,10 @@ export default decorate([
size: 'medium',
})
const { cidr, masterName, nbNodes, network, sr, sshKey } = recipeParams
const { masterName, nbNodes, network, sr, sshKey } = recipeParams
markRecipeAsCreating(RECIPE_INFO.id)
const tag = await createKubernetesCluster({
cidr,
masterName,
nbNodes: +nbNodes,
network: network.id,