mirror of https://github.com/rancher/ui.git
Add price to HA option
This commit is contained in:
parent
d23b54d9d0
commit
a07f8863e2
|
|
@ -46,16 +46,18 @@ const NODE_POOL_HEADERS = [
|
|||
];
|
||||
|
||||
export default Component.extend(ClusterDriver, {
|
||||
intl: service(),
|
||||
linode: service(),
|
||||
intl: service(),
|
||||
linode: service(),
|
||||
layout,
|
||||
configField: 'lkeEngineConfig',
|
||||
step: 1,
|
||||
lanChanged: null,
|
||||
refresh: false,
|
||||
sortBy: '',
|
||||
descending: false,
|
||||
nodePoolHeaders: NODE_POOL_HEADERS,
|
||||
configField: 'lkeEngineConfig',
|
||||
step: 1,
|
||||
lanChanged: null,
|
||||
refresh: false,
|
||||
sortBy: '',
|
||||
descending: false,
|
||||
nodePoolHeaders: NODE_POOL_HEADERS,
|
||||
// This value is currently not returned by the Linode API
|
||||
highAvailabilityMonthlyPrice: 60.0,
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
|
@ -66,7 +68,6 @@ export default Component.extend(ClusterDriver, {
|
|||
setProperties(this, {
|
||||
// We should store the previous state of HA to disallow downgrades
|
||||
'highAvailability': config ? config.highAvailability : false,
|
||||
|
||||
'newTag': '',
|
||||
'selectedNodePoolType': '',
|
||||
'selectedNodePoolObj': {},
|
||||
|
|
@ -82,7 +83,7 @@ export default Component.extend(ClusterDriver, {
|
|||
accessToken: '',
|
||||
region: 'us-central',
|
||||
kubernetesVersion: '',
|
||||
highAvailability: false,
|
||||
highAvailability: false,
|
||||
tags: [],
|
||||
nodePools: []
|
||||
});
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
<label>
|
||||
{{radio-button selection=cluster.lkeEngineConfig.highAvailability value=true}}
|
||||
{{t "generic.enabled"}}
|
||||
(+{{format-number highAvailabilityMonthlyPrice style='currency' currency='USD'}}/{{t "clusterNew.linodelke.highAvailability.month"}})
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
|
|
|
|||
|
|
@ -4275,6 +4275,7 @@ clusterNew:
|
|||
highAvailability:
|
||||
label: High Availability
|
||||
warning: Once a cluster has been upgraded to High Availability, it cannot be downgraded.
|
||||
month: month
|
||||
kubernetesVersion:
|
||||
label: Kubernetes Version
|
||||
placeholder: Select a kubernetes version for your cluster
|
||||
|
|
@ -4652,7 +4653,7 @@ clusterNew:
|
|||
networkPolicy:
|
||||
label: Project Network Isolation
|
||||
editHelp: The Project Network Isolation option cannot be changed after the cluster is created
|
||||
selectNetworkPolicyHelp: You must have a Network Policy selected to use Project Network Isolation
|
||||
selectNetworkPolicyHelp: You must have a Network Policy selected to use Project Network Isolation
|
||||
nodeName:
|
||||
detail: Optionally configure the node name as identification instead of the actual hostname
|
||||
placeholder: e.g. my-worker-node
|
||||
|
|
|
|||
Loading…
Reference in New Issue