Skip to content

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Jun 6, 2025

As we move towards deprecating this operator and move towards https://github.com/uselagoon/dbaas-controller, there needs to be a way to flag a consumer to not drop the database from the provider when the resource is deleted.

As we are deprecating this service, I opted to use a label to handle this. The build-deploy-tool will add this label when performing a migration from a XConsumer to a DatabaseRequest, and then at the end of a deployment, when the XConsumer would be removed, the database associated would remain while the linked services would be removed.

To prevent the database from being dropped, the existence of this label dbaas.amazee.io/no-drop-database with any value will do.

Also some small adjustments to some message formatting.

@shreddedbacon shreddedbacon marked this pull request as ready for review June 6, 2025 05:42
@shreddedbacon shreddedbacon requested a review from bomoko July 23, 2025 05:23
@shreddedbacon shreddedbacon merged commit 72a94d9 into main Jul 23, 2025
5 checks passed
@shreddedbacon shreddedbacon deleted the no-drop-database branch July 23, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants