Files
Doug Goldstein 748d9d8800 feat: Make the MariaDB resource cleanup policy explicit and configurable
The charts rendered the Database, User and Grant custom resources
without spec.cleanupPolicy, so whether deleting a resource also dropped
the database or account depended on the default of whichever controller
reconciled it. The chart's own db controller defaults to Skip, but the
upstream mariadb-operator ran its cleanup finalizer when the field was
unset, so removing the Database resource dropped the schema and its
data.

Add mariadb_db.cleanup_policy to every chart that renders these
resources, defaulting to Skip, and render it into the Database, User and
Grant specs. Data is no longer dropped implicitly, for example when a
GitOps tool prunes the resources or a release is uninstalled. Set it to
Delete to have the resources remove what they created.

Connection has no cleanup policy and is unchanged.

Assisted-By: Claude Sonnet 5.5
Change-Id: Iea2ff4ba853ecb9535445df6a604d4c95addb502
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2026-11-06 11:58:43 -06:00
..
2019-04-15 11:15:35 +02:00
2026-10-20 07:10:12 -05:00