Add HA option

This commit is contained in:
Lena Garber 2022-04-19 14:55:37 +00:00 committed by LBGarber
parent 86aaea0ef9
commit d23b54d9d0
No known key found for this signature in database
GPG Key ID: 0C204507E5AE0650
3 changed files with 35 additions and 0 deletions

View File

@ -64,6 +64,9 @@ export default Component.extend(ClusterDriver, {
let configField = get(this, 'configField');
setProperties(this, {
// We should store the previous state of HA to disallow downgrades
'highAvailability': config ? config.highAvailability : false,
'newTag': '',
'selectedNodePoolType': '',
'selectedNodePoolObj': {},
@ -79,6 +82,7 @@ export default Component.extend(ClusterDriver, {
accessToken: '',
region: 'us-central',
kubernetesVersion: '',
highAvailability: false,
tags: [],
nodePools: []
});

View File

@ -80,6 +80,34 @@
</div>
</div>
{{/if}}
<div class="row">
<div class="col span-6">
<label class="acc-label">
{{t "clusterNew.linodelke.highAvailability.label"}}
{{field-required}}
</label>
{{#input-or-display
editable=true
value=cluster.lkeEngineConfig.highAvailability
}}
<div class="radio">
<label>
{{radio-button selection=cluster.lkeEngineConfig.highAvailability value=true}}
{{t "generic.enabled"}}
</label>
</div>
<div class="radio">
<label>
{{radio-button selection=cluster.lkeEngineConfig.highAvailability disabled=highAvailability value=false}}
{{t "generic.disabled"}}
</label>
</div>
{{/input-or-display}}
<p class="help-block">
{{t "clusterNew.linodelke.highAvailability.warning"}}
</p>
</div>
</div>
<div class="row">
<div class="header mt-40 mb-0">
<div class="pull-left">

View File

@ -4272,6 +4272,9 @@ clusterNew:
loading: Saving your cluster configuration
next: Proceed to Node pool selection
title: Cluster Configuration
highAvailability:
label: High Availability
warning: Once a cluster has been upgraded to High Availability, it cannot be downgraded.
kubernetesVersion:
label: Kubernetes Version
placeholder: Select a kubernetes version for your cluster