mirror of https://github.com/rancher/ui.git
Add HA option
This commit is contained in:
parent
86aaea0ef9
commit
d23b54d9d0
|
|
@ -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: []
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue