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
Should --plugopts overwrite or add plugin options from config file or preset? #3252
Comments
I believe we should ideally make both things available to user for override. I imagine the UI should be working like Option So we would replace However I'm not so sure it is worth breaking backwards compatibility causing failures and confusion for users used to override behavior. If we need this and are unwilling to break backwards compatibility I think the option might be adding more sytax like
Similar thing could be done in config '-*' expression is for ilustrating previous point.
I'm not convinced it is worth doing outside 5.0 or similarly big release that could change the UI. |
We use I don't think we need to change the CLI options for plugin options to support this - but if that's a path we want to go down, that's definitely a major version change item and one we'd need to discuss in depth. |
Having
-k/--plugopts
specified in an enabled preset and on command line(*), the later fully overwrites whole option. I.e.-k
is an override option (for preset+cmdline combination). While it is additive option when you repeatedly apply on command line.Is that expected behaviour? Or should it be additive for preset+cmdline as well?
Particular example:
the
--plugopts
are loaded from theocp
preset. BUT:OR also:
does completely throw away
--plugopts
from the preset (or from config file, as another possible use case).Is this expected behaviour? Or should a plugin option from cmdline be added (or update just the one option like in
--preset ocp -vvv -k networking.ethtool_namespaces=True
case)?My 2c is we should add/update plugopts, not reset it.
The text was updated successfully, but these errors were encountered: