-
Notifications
You must be signed in to change notification settings - Fork 238
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
[Task] Add a way to distinguish if a value is default or what the default value is #2869
Comments
Currently these have been defined in the Configuration component |
this is what the api returns with the changes in https://github.com/anjannath/crc/tree/config-defaults but not very clean {
"Configs": {
"bundle": {
"value": "/Users/anjan/.crc/cache/crc_podman_hyperkit_3.4.4_amd64.crcbundle",
"IsDefault": true,
"defaultValue": "/Users/anjan/.crc/cache/crc_podman_hyperkit_3.4.4_amd64.crcbundle"
},
"consent-telemetry": {
"value": "no",
"IsDefault": false,
"defaultValue": ""
},
"cpus": {
"value": 2,
"IsDefault": true,
"defaultValue": 2
},
[...]
} might be better to extend the |
I'd prefer not to go this way, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
General information
CRC version
Current dev and master branch
CRC config
Steps to reproduce
GET /api/config
Issue
The current API will return all settings that possible, but does not indicate if the config is a default or not.
{ autostart-tray: true, bundle: '/home/gbraad/.crc/cache/crc_libvirt_4.9.0.crcbundle', ... , nameserver: "",
This means empty options are given or bundle, which is not explicitly set. It would be better to return settings that also includes what the default is or even if the default is used.
This way we can also print this as a description or information in the React components for Electron and Cockpit module.
The text was updated successfully, but these errors were encountered: