-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add crio config --migrate feature #3487
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
78113fd
to
8261cd0
Compare
hm often I do |
also this seems more as a |
finally, in the help docs we should mention that this will rewrite the whole config, and that users should move their user changed config values to drop-in files if they don't want to lose potentially their values |
I think logrus already logs to stderr, so this scenario should be fine. |
We could also migrate configs like this, which already works:
It does not only migrate to defaults. For example lets take the capabilities: All custom specified capabilities will be still in afterwards, whereas we only remove the NET_RAW and SYS_CHROOT ones. |
Sure, I will write a explicit documentation if we think we should continue here. |
6c57007
to
badd818
Compare
right, but that's a default change. It is also migrating the config structure, but that's happening as part of the it's a pedantic difference, and I'm not that invested in the change, but I think we should be clear that this flag is going to change the defaults from the 1.17 defaults to 1.18 defaults. |
badd818
to
6f392cb
Compare
/retest |
a24ec4a
to
939d4f0
Compare
Updated the PR with documentation and testing. PTAL |
one nit, otherwise LGTM |
1d1b603
to
5bbfaa7
Compare
5bbfaa7
to
3bb72cd
Compare
/retest |
We now offer a new option crio config -m/--migrate to migrate the current provided config to the latest version. The feature also logs which changes will be done to the config before printing the result. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
3bb72cd
to
ab431e6
Compare
/retest @haircommander I think this might be ready to be merged if we want to have it |
/lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
We now offer a new option
crio config -m/--migrate
to migrate the current provided config to the latest version. The feature also logs which changes will be done to the config before printing the result:Which issue(s) this PR fixes:
None
Special notes for your reviewer:
I will add tests if we agree that this is useful for users.
Does this PR introduce a user-facing change?