Rust 1.100.0 brings stable Allocator API, never type, cargo lints, and minimum publish age. Here is what matters for production deployments.
Seven PostgreSQL databases in our openEduSuite platform were running as hand-rolled Kubernetes Deployments with one PVC each: Discourse, OpenProject, Dify, Indico, TOSS, BigBlueButton, Greenlight. Each had its own init scripts, its own service name — and a backup story built from a PVC snapshot plus a nightly pg_dump cron. That scheme has a quiet, structural hole: restore to last night, never to crash time. We are closing it with CloudNativePG — not through a big-bang rewrite, but on purpose.
Our evaluation doc starts with a no. CNPG is PostgreSQL-only, so the MySQL/MariaDB fleet (Galera, SOGo, Request Tracker, ILIAS, InvoiceNinja, XWiki, Piler) is simply not a candidate — it needs its own answer, documented separately instead of wished away. The small file/SQLite services (HedgeDoc, CalDAV, Overleaf) stay cheap as they are.
What remained were the stray Postgres instances carrying real user data without point-in-time recovery. The reference architecture has existed in-house since early 2026: operaton-db runs on CloudNativePG — operator pinned at 1.30.x, barman-cloud plugin archiving WAL into our own S3 (SeaweedFS), daily ScheduledBackup at 01:30, thirty-day retention, fully managed by ArgoCD. Two further databases (dependencytrack, litellm) sit in the conscious opposite pattern: regeneratable data, no backup. Adoption here means copying a proven shape, not inventing one — the evaluation proposed least→most exposed (toss → dify → indico → discourse → openproject → greenlight); execution went discourse and openproject first — the best-prepared migration windows deserve the highest-value databases.
CNPG owns the pods, so the distro image must fit its contract: uid/gid 26, no custom entrypoint, barman tooling present. Two apps needed freshly derived images, and both derivations had teeth:
vector extension (plus pg_trgm, unaccent, hstore). The legacy discourse-postgres image is an application build with its own entrypoint and uid 999 — CNPG-incompatible. Solution: a generic postgresql-pgvector derivation (PG 16.16 + pgvector 0.8.7 via withPackages), verified by actually creating the extension and running a distance operator, not merely by building it.pg_restore refuses to import into a lower major version. The cluster image is therefore postgresql-17 (17.12, nix) — the fleet default 16 would have blown up the migration window mid-run.postgres:16-alpine. Exactly unpinned images like this are why our supply-chain gates exist; hardening to a pinned nix image happens before the CNPG CR, not during.Pushing the images also needed a trick: the in-cluster registry host runs no Docker daemon, so the flow became nix build | gzip -dc | rsync | skopeo copy docker-archive → docker:// inside a container with --network host.
An earlier CNPG incident (operator migration onto a nix-built image, roughly 45 minutes of downtime) left two rules that shaped this adoption:
--force nobody should trust. The adoption manifests list the controller-owned defaults literally so SSA reconciles cleanly.Per adopted database, three objects: a Cluster CR (one instance where the app never had replicas — HA is optional, the PITR is the point), a barmancloud ObjectStore CR pointing at s3://…/cnpg/<db>/, and a ScheduledBackup at 0 30 1 * * * (six fields — CNPG cron includes seconds, and five-field crons fail in ways that look like operator bugs). Credentials move to out-of-band secrets <db>-db-creds, so app passwords never change. Consumers switch their host to the CNPG service <db>-rw, and the old Deployment disappears.
The payoff is concrete: restore to any point within retention instead of "last night's dump"; WAL archiving into storage we already operate; declarative image upgrades as rolling updates instead of manual bounces; a per-pod metrics endpoint for Prometheus without sidecar surgery.
Not "everything on one operator". The end state we are building: CNPG for the stateful Postgres apps (seven), documented exception lists for MySQL/MariaDB and the regeneratable pair, and one backup mechanism at the platform's centre of gravity instead of seven small cron jobs nobody watched. Half of the migrations will be boring — and after the incident lessons above, boring is the entire point.
Status: the adoption is complete — all seven databases run on CNPG now. The change (cnpg-adopt-postgres-backends) was delivered task-by-task (45/45), archived, and its spec graduated into the platform's operating standard (database/cnpg-management). One finding during rollout: a nightly backup job had silently failed for days, so the fleet gained a cnpg-backup-check CronJob plus a CNPGBackupCheckFailed alert (>26 h backup gap) — PITR is only as good as the chain you watch.