do-operator icon indicating copy to clipboard operation
do-operator copied to clipboard

Support database creation

Open sjoukedv opened this issue 3 years ago • 4 comments

I'd like to also create databases similar to DatabaseUser resources.

Maybe this is confusing with the 'Database' prefix naming convention. Perhaps it should be 'DatabaseServer' instead so that we can use DatabaseServerDatabase and DatabaseServerUser.

sjoukedv avatar Oct 15 '22 02:10 sjoukedv

Making sure I understand what you want, since the naming is confusing:

We support creating and managing a DO Managed Database instance (which is called a Database Cluster in the DO docs and API) via the DatabaseCluster CRD. The API does also support creating a "database" within a database cluster; that isn't currently supported in the operator, but there's no reason it couldn't be.

Are you wishing to manage databases within a database cluster via the operator?

adamwg avatar Oct 17 '22 18:10 adamwg

Making sure I understand what you want, since the naming is confusing:

We support creating and managing a DO Managed Database instance (which is called a Database Cluster in the DO docs and API) via the DatabaseCluster CRD. The API does also support creating a "database" within a database cluster; that isn't currently supported in the operator, but there's no reason it couldn't be.

Are you wishing to manage databases within a database cluster via the operator?

Yes, exactly I wish to create a Database from the do-operator which should be possible as the DO API also support this.

If you want to take it to the next level; there can be something like a DatabasePermission resource that grants privileges on the newly created database (with the do-operator) this allows developers to create everything dynamically from Kubernetes.

sjoukedv avatar Oct 18 '22 06:10 sjoukedv

Thanks for confirming! Agreed, this would be a good feature.

adamwg avatar Oct 18 '22 13:10 adamwg

Is there any progress on such a feature? I've been trying to implement things as a non-go developer, but haven't had that much luck, although i'm open to try again with some help to be on the right direction.

kominoshja avatar Feb 19 '24 16:02 kominoshja