-
Notifications
You must be signed in to change notification settings - Fork 252
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
storage.conf: Various cleanups #2066
Conversation
The default storage.conf we ship is inconsistent in a few ways; there's a lot of fixes rolled up into this single commit. First: we were using a toml "inline table" for the pull options, and then documenting each key in that table in one blob above. It simply looks much nicer to use a non-inline table - then we can move the docs next to each individual value. This is also more consistent with other sections of the config. I also thinned out a bit the doc comments; I think instead of trying to have a longer explanation of zstd:chunked in the comments here we should refer to the man page, which is a better place to have details (and that we should fill out more). Per another PR, I also stumbled across the fact that we have a lot of "string bool" values and cannot be native TOML booleans. Document that clearly next to each type. We already have default values in the *code* for all of these, so comment them all out to be consistent with other values. (We're then getting closer to having the config file be entirely comments, but that's a distinct project) Finally, update the recent man pages I added to match these changes. Signed-off-by: Colin Walters <[email protected]>
Can we support both native and string at the same time? LGTM |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, flouthoc 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 |
I agree that maybe both |
Yes, I believe so, but we should look at that after this. |
Agreed. |
pull_options syntax has chagned recently. Ref: containers/storage#2066 Signed-off-by: Lokesh Mandvekar <[email protected]>
storage.conf has been updated upstream so the config files update script needs to account for that. Ref: containers/storage#2066 Signed-off-by: Lokesh Mandvekar <[email protected]>
The default storage.conf we ship is inconsistent in a few ways; there's a lot of fixes rolled up into this single commit.
First: we were using a toml "inline table" for the pull options, and then documenting each key in that table in one blob above. It simply looks much nicer to use a non-inline table - then we can move the docs next to each individual value. This is also more consistent with other sections of the config.
I also thinned out a bit the doc comments; I think instead of trying to have a longer explanation of zstd:chunked in the comments here we should refer to the man page, which is a better place to have details (and that we should fill out more).
Per another PR, I also stumbled across the fact that we have a lot of "string bool" values and cannot be native TOML booleans. Document that clearly next to each type.
We already have default values in the code for all of these, so comment them all out to be consistent with other values. (We're then getting closer to having the config file be entirely comments, but that's a distinct project)
Finally, update the recent man pages I added to match these changes.