Skip to content

refactor: ensure we can set custom mongodb and rds names

Boros Gábor requested to merge gabor/rds-names into main

Description

This MR allows the operators to redefine the MongoDB atlas cluster name and RDS instance identifiers.

Supporting information

Testing instructions

Steps to test the changes:

  1. Apply the following changes and do a ./tf plan to see the diff
              + region_name     = "CA_CENTRAL_1"
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a4df84e..4ec35ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,5 +10,5 @@
 include:
   - project: opencraft/dev/grove
     file: /gitlab-ci/bootstrap-v1.yml
-    ref: 7d3c3ee17d78782889bfda56fe54ded55dbbd770
+    ref: gabor/rds-names
   - local: /cluster.yml
diff --git a/cluster.yml b/cluster.yml
index 68a880c..ae2f0b0 100644
--- a/cluster.yml
+++ b/cluster.yml
@@ -17,3 +17,5 @@ variables:
     alb.ingress.kubernetes.io/target-type: "ip"
     alb.ingress.kubernetes.io/wafv2-acl-arn: "arn:aws:wafv2:ca-central-1:466538543953:regional/webacl/grove-test/e8db230c-4cff-4a50-a703-a808296d1d5a"

+  TF_VAR_mongodbatlas_cluster_name: "gabor-cluster-rename-mongo"
+  TF_VAR_rds_identifier: "gabor-cluster-rename-rds"
diff --git a/grove b/grove
index 7d3c3ee..1942a73 160000
--- a/grove
+++ b/grove
@@ -1 +1 @@
-Subproject commit 7d3c3ee17d78782889bfda56fe54ded55dbbd770
+Subproject commit 1942a73d8e1532bcbccff73cfd5737005d6dce23

Dependencies

N/A

Screenshots

N/A

Checklist

If any of the items below is not applicable, do not remove them, but put a check in it.

  • All providers include the new feature/change
  • All affected providers can provision new clusters
  • Unit tests are added/updated
  • Documentation is added/updated
  • The TOOLS_CONTAINER_IMAGE_VERSION in ci_vars.yml is updated
  • The grove-template repository is updated

Additional context

N/A

Edited by Boros Gábor

Merge request reports