-
Notifications
You must be signed in to change notification settings - Fork 174
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
pkg/config: use empty default for db_backend #1692
Conversation
Draft as this will break podman until I open a PR to fix the detection logic there. |
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.
👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, vrothberg 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 |
LGTM |
Podman should default to sqlite for new installs, however to not break upgrades we should detect if a boltdb database exists and use that in such case. Now in order to distinguish between an explicitly set "sqlite" and "boltdb" and nothing set we use an empty default. With that podman can know if we really should use the default or if it was configured for a db explicitly. The actual detection logic must be implemented in podman as we only know the file locations there. This commit also drops the unused StateType as this was not used at all. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This should be good to do, podman tests are happy. |
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
Podman should default to sqlite for new installs, however to not break upgrades we should detect if a boltdb database exists and use that in such case. Now in order to distinguish between an explicitly set "sqlite" and "boltdb" and nothing set we use an empty default.
With that podman can know if we really should use the default or if it was configured for a db explicitly. The actual detection logic must be implemented in podman as we only know the file locations there.
This commit also drops the unused StateType as this was not used at all.