-
Notifications
You must be signed in to change notification settings - Fork 475
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
Create a global configuration store and inherit configuration for profiles #1517
Comments
See also #1480 |
Also an alternative approach which could be a stepping stone is the ability to copy a given profile. See #1480 (comment) Adding a global option to the config and addon command leave several open questions which would need first discussing/resolution. A profile copy command could easily be added w/o breaking consistency. In the long run a --global flag could exist in parallel to a profile copy command. |
Why adding a new command? copy/clone? What would it copy? What if I don't want to copy everything from one profile? Should I create "bare" profiles that I will not run just to hold the things I want to copy as "templates"? |
Some question around a global switch:
|
That's an independent issue really and yes, the aim is to share cached images, oc clients, isos
no symlinks needed. Also on Windows that would not even work |
Yes. In a place where "minishift delete --profile xxx" would not destroy, and that by default if I just install minishift, I will have.
No, if it's not default addon, then a "install --global" would be needed. |
Global config is in line what my thinking when I worked on hostfolders. It was renamed to allinstances instead, but I still believe it is the better option. Jumbling with copy and clones from other prifiles feels cumbersome and convoluted. +1 |
In hostfolders precendence is as follows
In the case of hostfolders it is not displayed, but we can alter this. |
Windows has junctions and these work similarly |
I have the situation I often perform... and I will write it as suggested by both global
Copy/clone
ConclusionAs you can see, I have several settings I use globally, that will never change between instances. But with a copy, this would always have to involve creating a 'profile store' to keep the settings in, and making this available before the instance gets started. |
I think the experience can be improved for the copy & clone, as I don't fully opose to this option as intermediate step and/or alternate. I'll rewrite your example:
This is less verbose and provides a "nicer" experience. But eventually, the last command is what struggles me most, but could work for the time being. |
I think
P:S: |
Created a separate issue #1649 for |
@LalatenduMohanty where do we stand with this feature? IMHO this should be high priority, and I see it keep postponing. It's really annoying. |
We are going to schedule it in the current sprint. |
This is a RFE for adding the ability to have a global configuration store for minishift, where you can set configuration, addons, etc.. that would apply to any new created profile.
I would like all my instances to have 8 GB of memory and 2 GB of ram and always use virtualbox, and I want always to install the addon user by default.
Then if I create a new profile(instance) I'll have that configuration applied:
If I want to provide some other configuration, I can do:
or
In this way I can easily define what are my typical defaults, and what are my explicit non-defaults.
Then I can delete a profile safely, and create a new one, and will inherit the defaults if nothing else specified. You can probably do this currently via environment variables on your shell, but this is not intuitive, and a user would most likely not know where things are configured. This way provides consistency in that a user can do "minishift config list [--profile profile]" and see the configuration applied to the profile, either because it's global and inherited, or because the user has set it.
This should also be where cached images, oc clients, isos should be stored, in a global configuration space, and maybe only symlinked in the specific profile. This would help not bloat the system, and reduce startup speed of every new instance.
The text was updated successfully, but these errors were encountered: