ui: Fix CreateKubernetesCluster for ha (#6106)

This commit is contained in:
David Jumani 2022-03-15 07:29:02 +05:30 committed by GitHub
parent 594c2c1b07
commit a4c6b12b26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@
<template #label> <template #label>
<tooltip-label :title="$t('label.haenable')" :tooltip="apiParams.haenable?.description || ''"/> <tooltip-label :title="$t('label.haenable')" :tooltip="apiParams.haenable?.description || ''"/>
</template> </template>
<a-switch v-model:cheked="form.haenable" /> <a-switch v-model:checked="form.haenable" />
</a-form-item> </a-form-item>
<a-form-item v-if="form.haenable"> <a-form-item v-if="form.haenable">
<template #label> <template #label>
@ -459,7 +459,8 @@ export default {
if (this.isValidValueForKey(values, 'noderootdisksize') && values.noderootdisksize > 0) { if (this.isValidValueForKey(values, 'noderootdisksize') && values.noderootdisksize > 0) {
params.noderootdisksize = values.noderootdisksize params.noderootdisksize = values.noderootdisksize
} }
if (this.isValidValueForKey(values, 'controlnodes') && values.controlnodes > 0) { if (this.isValidValueForKey(values, 'haenable') && values.haenable &&
this.isValidValueForKey(values, 'controlnodes') && values.controlnodes > 0) {
params.controlnodes = values.controlnodes params.controlnodes = values.controlnodes
} }
if (this.isValidValueForKey(values, 'externalloadbalanceripaddress') && values.externalloadbalanceripaddress !== '') { if (this.isValidValueForKey(values, 'externalloadbalanceripaddress') && values.externalloadbalanceripaddress !== '') {