Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit f0ee685

Browse files
committed
Adding warning to scaleKubernetesCluster
1 parent 4d84d89 commit f0ee685

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/config/section/compute.js

+1
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ export default {
454454
api: 'scaleKubernetesCluster',
455455
icon: 'swap',
456456
label: 'label.kubernetes.cluster.scale',
457+
message: 'message.action.scale.kubernetes.cluster.warning',
457458
docHelp: 'plugins/cloudstack-kubernetes-service.html#scaling-kubernetes-cluster',
458459
dataView: true,
459460
show: (record) => { return ['Created', 'Running'].includes(record.state) },

src/locales/en.json

+1
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,7 @@
24112411
"message.action.revert.snapshot": "Please confirm that you want to revert the owning volume to this snapshot.",
24122412
"message.action.router.health.checks": "Health checks result will be fetched from router.",
24132413
"message.action.router.health.checks.disabled.warning": "Please enable router health checks.",
2414+
"message.action.scale.kubernetes.cluster.warning": "Please do not manually scale the cluster if cluster autoscaling is enabled",
24142415
"message.action.secure.host": "This will restart the host agent and libvirtd process after applying new X509 certificates, please confirm?",
24152416
"message.action.settings.warning.vm.running": "Please stop the virtual machine to access settings",
24162417
"message.action.settings.warning.vm.started": "Virtual machine has been started. It needs to be stopped to access settings",

src/views/compute/ScaleKubernetesCluster.vue

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<template>
1919
<div class="form-layout">
2020
<a-spin :spinning="loading">
21+
<a-alert type="warning">
22+
<span slot="message" v-html="$t('message.action.scale.kubernetes.cluster.warning')" />
23+
</a-alert>
24+
<br />
2125
<a-form
2226
:form="form"
2327
@submit="handleSubmit"

0 commit comments

Comments
 (0)