-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Add vm config parser, unify vm and helm type app deployment #503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add vm config parser, unify vm and helm type app deployment #503
Conversation
Codecov Report
@@ Coverage Diff @@
## master #503 +/- ##
==========================================
- Coverage 17.5% 16.43% -1.08%
==========================================
Files 91 94 +3
Lines 1405 1497 +92
Branches 294 313 +19
==========================================
Hits 246 246
- Misses 1103 1195 +92
Partials 56 56
Continue to review full report at Codecov.
|
src/pages/TestDeploy/index.jsx
Outdated
{ title: 'Vxnet settings', items: this.parser.getVxnetSetting() } | ||
); | ||
|
||
console.log('render data: ', groups); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove test code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, this pr is working in progress, later will remove test code
src/pages/TestDeploy/index.jsx
Outdated
|
||
handleSubmit = e => { | ||
e.preventDefault(); | ||
console.log(getFormData(e.target)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove test code.
Refactor app deployment
refactor vm config parser
c86b422
to
1b88356
Compare
Deploy page updated when changed runtime, version Fix test code
runtime_id: runtimeId, | ||
limit: this.maxLimit | ||
}); | ||
this.subnets = get(result, 'subnet_set', []); | ||
this.subnetId = this.subnets[0] ? this.subnets[0].subnet_id : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need remove this code. If selected subnet, then change selected runtime, the subnet will show previous value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, if changed runtime, newly subnets will be fetched, previous subnet won't be set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous has a bug, after change runtime, query subnets no data, but the page subnet label show previous value.
} else { | ||
this.yamlConfig = []; | ||
this.errMsg = 'Invalid config file, failed to render page'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add relatived translation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
Refactor app deployment