Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support database creation #30

Open
sjoukedv opened this issue Oct 15, 2022 · 4 comments
Open

Support database creation #30

sjoukedv opened this issue Oct 15, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@sjoukedv
Copy link

sjoukedv commented Oct 15, 2022

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.

@adamwg
Copy link
Contributor

adamwg commented Oct 17, 2022

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?

@sjoukedv
Copy link
Author

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.

@adamwg
Copy link
Contributor

adamwg commented Oct 18, 2022

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

@adamwg adamwg added the enhancement New feature or request label Oct 18, 2022
@kominoshja
Copy link

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 kominoshja mentioned this issue Feb 21, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants