11locals {
2- other_settings = {
3- " global.fqdn" = var.fqdn,
2+
3+ config = {
4+ global = { fqdn = var.fqdn }
45 }
56
67 image_tags = {
7- " webservice.image.tag" = " a324758 " ,
8- " migrations.image.tag" = " f8372a7 " ,
9- " event-worker.image.tag" = " a324758 " ,
10- " job-policy-checker.image.tag" = " a324758 " ,
8+ " webservice.image.tag" = " f505293 " ,
9+ " migrations.image.tag" = " a6faaf3 " ,
10+ " event-worker.image.tag" = " f505293 " ,
11+ " job-policy-checker.image.tag" = " f505293 " ,
1112 }
1213
1314 postgres_settings = {
1415 " global.postgresql.user" = var.postgres_user,
1516 " global.postgresql.password" = var.postgres_password,
1617 " global.postgresql.host" = var.postgres_host,
17- " global.postgresql.port" = var.postgres_port,
18+ " global.postgresql.port" = tostring ( var. postgres_port ) ,
1819 " global.postgresql.database" = var.postgres_database,
1920 }
2021
@@ -35,7 +36,7 @@ locals {
3536 redis_settings = {
3637 " global.redis.host" = var.redis_host,
3738 " global.redis.password" = var.redis_password,
38- " global.redis.port" = var.redis_port,
39+ " global.redis.port" = tostring ( var. redis_port ) ,
3940 }
4041
4142 ingress_annotations = {
@@ -70,7 +71,6 @@ resource "helm_release" "this" {
7071
7172 dynamic "set" {
7273 for_each = merge (
73- local. other_settings ,
7474 local. image_tags ,
7575 local. auth_providers_settings ,
7676 local. postgres_settings ,
@@ -85,5 +85,5 @@ resource "helm_release" "this" {
8585 }
8686 }
8787
88- values = [yamlencode (local. merged_values )]
88+ values = [yamlencode (local. merged_values ), yamlencode (local . config ) ]
8989}
0 commit comments