ui: set default cpu, memory value for k8s version (#7513)

By default, use mincpunumber=2 and minmemory=2048 as these are k8s minimum required spec.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2023-05-11 12:55:35 +05:30 committed by GitHub
parent a582b2a5a1
commit e613b90fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -141,7 +141,10 @@ export default {
methods: {
initForm () {
this.formRef = ref()
this.form = reactive({})
this.form = reactive({
mincpunumber: 2,
minmemory: 2048
})
this.rules = reactive({
semanticversion: [{ required: true, message: this.$t('message.error.kuberversion') }],
zoneid: [{