Skip to content

[Feature]: warn users if running a deprecated/unsupported Debian version #8575

@gbartolini

Description

@gbartolini

Is there an existing issue already for this feature request/idea?

  • I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.

What problem is this feature going to solve? Why should it be added?

The postgres-containers project now includes a table that clearly outlines the support status of various Debian versions:

Name Version Release Date EOL LTS Status
Trixie (stable) 13 2025-08-09 2028-08-09 2030-06-30 Supported
Bookworm (oldstable) 12 2023-06-10 2026-06-10 2028-06-30 Supported
Bullseye (oldoldstable) 11 2021-08-14 2024-08-14 2026-08-31 Deprecated

We should implement a warning that activates when the cluster starts up, indicating if a version is beyond its End of Life (EOL) status (deprecated) or beyond its Long-Term Support (LTS) period (not supported).

Describe the solution you'd like

Verify the content of the /etc/os-release file which, in the case of bullseye reports this:

$ kubectl exec -ti cluster-example-1 -c postgres -- cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

CloudNativePG could maintain an internal table where the VERSION is the key, storing the two dates (supported_until and deprecated_from). Based on the current date at the time of startup of the PostgreSQL instance, the instance manager can log a warning as explained above.

Describe alternatives you've considered

N/A

Additional context

No response

Backport?

Yes

Are you willing to actively contribute to this feature?

Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions