Merge pull request #26788 from mheon/deprecate_boltdb_notice

Add BoltDB deprecation notice
This commit is contained in:
openshift-merge-bot[bot]
2025-08-11 19:43:58 +00:00
committed by GitHub

View File

@ -94,6 +94,11 @@ func NewBoltState(path string, runtime *Runtime) (State, error) {
logrus.Debugf("Allowing deprecated database backend due to CI_DESIRED_DATABASE.")
}
// TODO: Up this to WARN level in 5.7, ERROR level in 5.8
if os.Getenv("SUPPRESS_BOLTDB_WARNING") == "" {
logrus.Infof("The deprecated BoltDB database driver is in use. This driver will be removed in the upcoming Podman 6.0 release in mid 2026. It is advised that you migrate to SQLite to avoid issues when this occurs. Set SUPPRESS_BOLTDB_WARNING environment variable to remove this message.")
}
db, err := bolt.Open(path, 0600, nil)
if err != nil {
return nil, fmt.Errorf("opening database %s: %w", path, err)