-
Notifications
You must be signed in to change notification settings - Fork 37
feat: add cpu model selection #702
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
base: main
Are you sure you want to change the base?
Conversation
pkg/harvester/l10n/en-us.yaml
Outdated
| osType: OS Type | ||
| cpuModel: | ||
| label: CPU Model | ||
| placeholder: Select a CPU model (optional) |
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.
We can remove (optional) since all required fields have red star.
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.
I removed it
|
|
||
| // Add None option at the beginning | ||
| options.push({ | ||
| label: this.t('harvester.virtualMachine.cpuModel.none'), |
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.
[Can Discuss] how do you think we let None (value is '') as the defult value ? Any concern from backend side?
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.
Good Idea. I used Default (value is '').
Signed-off-by: Jack Yu <[email protected]>
Summary
We ended up using config map. It should be the final decision for this case. But, anyway, the GUI shouldn't have too many changes. The GUI changes include virtualmachine and virutalmachinetemplateversion.
PR Checklists
Related Issue
GUI: harvester/harvester#6863, harvester/harvester#9745
Original Issue: harvester/harvester#3015
Backend: harvester/harvester#9522
Test screenshot or video
demo-01.mov