Add price to HA option

This commit is contained in:
LBGarber 2022-07-05 10:55:27 -04:00
parent d23b54d9d0
commit a07f8863e2
No known key found for this signature in database
GPG Key ID: 0C204507E5AE0650
3 changed files with 15 additions and 12 deletions

View File

@ -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: []
});

View File

@ -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">

View File

@ -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