From 8038ad4ef60a59e18a857942ee1a68bff028744f Mon Sep 17 00:00:00 2001 From: ns-squareops Date: Fri, 5 Jan 2024 16:53:50 +0530 Subject: [PATCH 1/2] changes done to solve backup and restore --- examples/complete/aws/main.tf | 1 + modules/backup/templates/cronjob.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/complete/aws/main.tf b/examples/complete/aws/main.tf index a8504ec..f349813 100644 --- a/examples/complete/aws/main.tf +++ b/examples/complete/aws/main.tf @@ -29,6 +29,7 @@ module "aws" { cluster_name = "cluster-name" environment = local.environment name = local.name + namespace = local.namespace store_password_to_secret_manager = local.store_password_to_secret_manager mysqldb_custom_credentials_enabled = local.mysqldb_custom_credentials_enabled mysqldb_custom_credentials_config = local.mysqldb_custom_credentials_config diff --git a/modules/backup/templates/cronjob.yaml b/modules/backup/templates/cronjob.yaml index 9687cc3..771fd15 100644 --- a/modules/backup/templates/cronjob.yaml +++ b/modules/backup/templates/cronjob.yaml @@ -37,6 +37,6 @@ spec: name: mysql-bucket-uri key: MYSQL_BUCKET_URI - name: BUCKET_PROVIDER - value: "gcs" + value: "s3" - name: AWS_DEFAULT_REGION value: {{ .Values.backup.aws_default_region }} From 6540eb8b2c6f4f3dc33493c08392db9e16928e40 Mon Sep 17 00:00:00 2001 From: ns-squareops Date: Fri, 5 Jan 2024 17:22:43 +0530 Subject: [PATCH 2/2] change restore image tag --- modules/restore/templates/job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/restore/templates/job.yaml b/modules/restore/templates/job.yaml index e6e1cd7..788ccd8 100644 --- a/modules/restore/templates/job.yaml +++ b/modules/restore/templates/job.yaml @@ -8,7 +8,7 @@ spec: serviceAccountName: sa-mysql-restore containers: - name: restore-mysqldb - image: squareops/mysqldb-restore:v4 + image: squareops/mysqldb-restore:v5 imagePullPolicy: Always env: - name: MYSQL_HOST