Skip to content

Commit

Permalink
release: 2024-04-12T13:39:31Z [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
release committed Apr 12, 2024
1 parent 6eb1742 commit 1c1f2a5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kubernetes/projects/staging/activity-tracker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVRVENDQXFtZ0F3SUJBZ0lVSXNGL3hrRkM2am9XUVhiaGNkUXlMSFNNV3R3d0RRWUpLb1pJaHZjTkFRRU0KQlFBd09qRTRNRFlHQTFVRUF3d3ZOMk0zWVRZMk1XRXRaVFl6TlMwMFlqQm1MVGc1TjJRdE56VXpZbUkyTmpWaQpabUl3SUZCeWIycGxZM1FnUTBFd0hoY05Nakl3TXpJMU1qTXdOelV6V2hjTk16SXdNekl5TWpNd056VXpXakE2Ck1UZ3dOZ1lEVlFRRERDODNZemRoTmpZeFlTMWxOak0xTFRSaU1HWXRPRGszWkMwM05UTmlZalkyTldKbVlqQWcKVUhKdmFtVmpkQ0JEUVRDQ0FhSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnR1BBRENDQVlvQ2dnR0JBTHNSd2RkYQpQaUJkVi9xYi9OaWVCTFZlMTdGdXJwZ3VYeHpuSVN3SEdPRHl3MzJ4bStod1hucCttUkVZRWFydFlxYkFHbVY4CmZnbmxYb1N3YzV1MUNDZElCNXVYVnJlbmF0K0s3Q0NSS3dOYnRs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d1pHMzhna3EKaTZTZ3pVV0JCVFFpb0VSVFRFdnJzV1loT0FkemZoeFBZQjRzSmdXaWc1S29od2hlVGw3MURLMkhRSDBaOCt6YQp6SVhPNHZDK0ZGVS9KcGYwU2hNbWEyUFdLT001NmRaTjg3cno4eHRFcTY3RmNIbUxaZW1hc0lUbjNLVkdsTmxhClMxY3JrdHFGM3hWWmM1WWdMOWorMFMvRzVkS3lCUnVtVjlXbkt5b0VKU2NaRXVqM2FmNFFjREdVOTladUQ2blkKWUNoNmE0U3A2RmJJajBOWW1FWHRsMVBraWRrNmZBaTI1eVdVcWNtYnRJZmUzTXZ5a1E9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
---
# We apply a resource quota to all namespaces to prevent starvation from other projects
apiVersion: v1
Expand Down
21 changes: 21 additions & 0 deletions terraform/project_activity-tracker_staging.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
# 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" {
value = {
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
Expand Down

0 comments on commit 1c1f2a5

Please sign in to comment.