feat: add LinkedDatabase CRD#238
Conversation
|
Hi @tkelkermans Is there any specific use-case that would require a separate linked-database CRD and controller specifically? Have you considered moving the linked-databases within the Databases custom resource instead? Were there any challenges in that approach? |
|
Thanks @manavrajvanshi. The driving use case is a separation of duties: infrastructure team provisions the PostgreSQL instances (via Database / NDB), and developers add logical databases into those already-existing instances without touching the instance config or re-provisioning anything. |
Summary
LinkedDatabaseCRD for creating logical PostgreSQL databases on an existing NDB database instance.POST /databases/{sourceDatabaseId}/linked-databaseswith body{"databases":[{"databaseName":"<name>"}]}.spec.sourceDatabaseIdor byspec.sourceDatabaseNameresolved fromNDBServerstatus.Scope notes
LinkedDatabaseCR does not delete the linked database from NDB.Verification
make testbin/kustomize build config/default >/tmp/ndb-default.yamlhelm lint deploy/helm