From 1c1f2a58eb757650a39a029c0a29146687ceb96e Mon Sep 17 00:00:00 2001 From: release <> Date: Fri, 12 Apr 2024 13:39:31 +0000 Subject: [PATCH] release: 2024-04-12T13:39:31Z [skip ci] --- .../projects/staging/activity-tracker.yaml | 6 ++++++ terraform/project_activity-tracker_staging.tf | 21 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/kubernetes/projects/staging/activity-tracker.yaml b/kubernetes/projects/staging/activity-tracker.yaml index 453a982..93e4035 100644 --- a/kubernetes/projects/staging/activity-tracker.yaml +++ b/kubernetes/projects/staging/activity-tracker.yaml @@ -7,6 +7,12 @@ metadata: labels: provisioner: etimo-kubernetes data: + DB_MAIN_NAME: "activity_tracker_staging_main" + DB_MAIN_USER: "activity_tracker_staging_main" + DB_MAIN_PORT: "25060" + DB_MAIN_PUBLIC_HOST: "staging-mysql-shared-do-user-11119612-0.c.db.ondigitalocean.com" + DB_MAIN_PRIVATE_HOST: "private-staging-mysql-shared-do-user-11119612-0.c.db.ondigitalocean.com" + DB_MAIN_CA: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVRVENDQXFtZ0F3SUJBZ0lVSXNGL3hrRkM2am9XUVhiaGNkUXlMSFNNV3R3d0RRWUpLb1pJaHZjTkFRRU0KQlFBd09qRTRNRFlHQTFVRUF3d3ZOMk0zWVRZMk1XRXRaVFl6TlMwMFlqQm1MVGc1TjJRdE56VXpZbUkyTmpWaQpabUl3SUZCeWIycGxZM1FnUTBFd0hoY05Nakl3TXpJMU1qTXdOelV6V2hjTk16SXdNekl5TWpNd056VXpXakE2Ck1UZ3dOZ1lEVlFRRERDODNZemRoTmpZeFlTMWxOak0xTFRSaU1HWXRPRGszWkMwM05UTmlZalkyTldKbVlqQWcKVUhKdmFtVmpkQ0JEUVRDQ0FhSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnR1BBRENDQVlvQ2dnR0JBTHNSd2RkYQpQaUJkVi9xYi9OaWVCTFZlMTdGdX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2lsQWNtRDRTaFVwTFJPbkU3YVlHZEt6ClBKRXhnbllsUlg5Y2ZzNFB3SlRLR05EWk81UlVHeGtVQ3pUVUw4aGN6NVVhWE1jaG9mTVM3ODlHd1pHMzhna3EKaTZTZ3pVV0JCVFFpb0VSVFRFdnJzV1loT0FkemZoeFBZQjRzSmdXaWc1S29od2hlVGw3MURLMkhRSDBaOCt6YQp6SVhPNHZDK0ZGVS9KcGYwU2hNbWEyUFdLT001NmRaTjg3cno4eHRFcTY3RmNIbUxaZW1hc0lUbjNLVkdsTmxhClMxY3JrdHFGM3hWWmM1WWdMOWorMFMvRzVkS3lCUnVtVjlXbkt5b0VKU2NaRXVqM2FmNFFjREdVOTladUQ2blkKWUNoNmE0U3A2RmJJajBOWW1FWHRsMVBraWRrNmZBaTI1eVdVcWNtYnRJZmUzTXZ5a1E9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==" --- # We apply a resource quota to all namespaces to prevent starvation from other projects apiVersion: v1 diff --git a/terraform/project_activity-tracker_staging.tf b/terraform/project_activity-tracker_staging.tf index fcc525f..2f7112e 100644 --- a/terraform/project_activity-tracker_staging.tf +++ b/terraform/project_activity-tracker_staging.tf @@ -1,6 +1,15 @@ # Buckets, if any +resource "digitalocean_database_db" "activity_tracker_staging_main_shared" { + cluster_id = local.staging_db_clusters["mysql"].id + name = "activity_tracker_staging_main" +} + +resource "digitalocean_database_user" "activity_tracker_staging_main_shared" { + cluster_id = local.staging_db_clusters["mysql"].id + name = "activity_tracker_staging_main" +} # Outputs output "project__activity_tracker_staging" { @@ -8,8 +17,20 @@ output "project__activity_tracker_staging" { project = "activity-tracker" stage = "staging" shared_databases = { + main = { + db_type = "mysql", + name = "activity_tracker_staging_main", + port = local.staging_db_clusters["mysql"].port, + host = local.staging_db_clusters["mysql"].host, + private_host = local.staging_db_clusters["mysql"].private_host, + ca = local.staging_db_certs["mysql"].certificate, + }, }, shared_databases_users = { + main = { + name = "activity_tracker_staging_main", + password = digitalocean_database_user.activity_tracker_staging_main_shared.password, + }, }, } sensitive = true