Open bennyvar77 opened 2 weeks ago
Looks like you not properly tested it and didn't read documentation: cleanupPolicy
My suggestion is to use separate manifests for database, users and grants with cleanupPolicy: Skip.
Not sure why your ArgoCD deleting deployments, maybe you should set prune: false
Also not sure why you deploying secret if in your MariaDB deployment you have generate: true
Hi @maciej-p Yes, i wasn't thorough enough in reading through the release notes. It was too tempting to get to the latest version. Meanwhile, i tested the cleanupPolicy: Skip The result is fine if the database is initially not included in the mariadb cr. If the database was included in the MariaDB cr and you remove the deployment, it will be deleted. The deletion happens even if i add the database manifest with the same database name and cleanupPolicy: Skip. I was expecting this definition to overrule the definition in the mariadb manifest as it is for the same db. So, what is your suggestion to migrate to a separated database manifest without losing the database?
Documentation
Describe the bug I have deployed a maria db as follows
After deploying, i have added a new table to the mariadb db
If i remove the deployment and redeploy it, the new table will be gone
Expected behaviour The removal and redeployment should not delete the db
Steps to reproduce the bug
Environment details:
Additional context I use ArgoCD for deployment.