From d751c9311a05adec2e8c1d7357a7ceda32515ad4 Mon Sep 17 00:00:00 2001 From: gitkvark Date: Wed, 27 Dec 2023 10:15:06 +0100 Subject: [PATCH] Specifying versions of helm packages --- terraform/deployments/preprod/releases/fastapi_app.tf | 1 + terraform/deployments/preprod/releases/postgres_cluster.tf | 1 + terraform/deployments/prod/releases/fastapi_app.tf | 1 + terraform/deployments/prod/releases/postgres_cluster.tf | 1 + terraform/deployments/releases/cert_manager.tf | 1 + terraform/deployments/releases/postgres_operator.tf | 5 +++-- 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/terraform/deployments/preprod/releases/fastapi_app.tf b/terraform/deployments/preprod/releases/fastapi_app.tf index f3b8fe1..e6bcfd3 100644 --- a/terraform/deployments/preprod/releases/fastapi_app.tf +++ b/terraform/deployments/preprod/releases/fastapi_app.tf @@ -2,6 +2,7 @@ resource "helm_release" "fastapi_app" { name = "fastapi-app" chart = "${path.module}/../../../../helm/fastapi-app" create_namespace = true + version = "0.1.6" values = [ file("${path.module}/../../../../helm/fastapi-app/values-preprod.yaml") ] diff --git a/terraform/deployments/preprod/releases/postgres_cluster.tf b/terraform/deployments/preprod/releases/postgres_cluster.tf index 0fd80f8..09a2b40 100644 --- a/terraform/deployments/preprod/releases/postgres_cluster.tf +++ b/terraform/deployments/preprod/releases/postgres_cluster.tf @@ -2,6 +2,7 @@ resource "helm_release" "postgres_cluster" { name = "postgres-cluster" chart = "${path.module}/../../../../helm/postgres-cluster" create_namespace = true + version = "0.1.12" values = [ file("${path.module}/../../../../helm/postgres-cluster/values-preprod.yaml") ] diff --git a/terraform/deployments/prod/releases/fastapi_app.tf b/terraform/deployments/prod/releases/fastapi_app.tf index 44b714b..5776d77 100644 --- a/terraform/deployments/prod/releases/fastapi_app.tf +++ b/terraform/deployments/prod/releases/fastapi_app.tf @@ -2,6 +2,7 @@ resource "helm_release" "fastapi_app" { name = "fastapi-app" chart = "${path.module}/../../../../helm/fastapi-app" create_namespace = true + version = "0.1.6" values = [ file("${path.module}/../../../../helm/fastapi-app/values-prod.yaml") ] diff --git a/terraform/deployments/prod/releases/postgres_cluster.tf b/terraform/deployments/prod/releases/postgres_cluster.tf index 41917f1..d499d0c 100644 --- a/terraform/deployments/prod/releases/postgres_cluster.tf +++ b/terraform/deployments/prod/releases/postgres_cluster.tf @@ -2,6 +2,7 @@ resource "helm_release" "postgres_cluster" { name = "postgres-cluster" chart = "${path.module}/../../../../helm/postgres-cluster" create_namespace = true + version = "0.1.12" values = [ file("${path.module}/../../../../helm/postgres-cluster/values-prod.yaml") ] diff --git a/terraform/deployments/releases/cert_manager.tf b/terraform/deployments/releases/cert_manager.tf index f2639f0..8be3c01 100644 --- a/terraform/deployments/releases/cert_manager.tf +++ b/terraform/deployments/releases/cert_manager.tf @@ -14,5 +14,6 @@ resource "helm_release" "cert_manager" { resource "helm_release" "cluster_issuer" { name = "cluster-issuer" chart = "${path.module}/../../../helm/clusterissuer" + version = "0.1.6" depends_on = [helm_release.cert_manager] } diff --git a/terraform/deployments/releases/postgres_operator.tf b/terraform/deployments/releases/postgres_operator.tf index 534174c..d30d683 100644 --- a/terraform/deployments/releases/postgres_operator.tf +++ b/terraform/deployments/releases/postgres_operator.tf @@ -10,8 +10,9 @@ resource "helm_release" "postgres_operator" { } resource "helm_release" "postgres_operator_config" { - name = "postgres-operator-config" - chart = "${path.module}/../../../helm/postgres-operator-config" + name = "postgres-operator-config" + chart = "${path.module}/../../../helm/postgres-operator-config" + version = "0.1.16" set { name = "s3_backup_aws_access_key_id" value = var.s3_backup_aws_access_key_id