Skip to content

Commit

Permalink
update images for utilites handling
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Apr 22, 2025
1 parent 5001e3f commit 0bb378f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
9 changes: 4 additions & 5 deletions copy_images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ locals {
keycloak_key = format("%v#%v", local.keycloak_name, var.keycloak_tag)
postgresql_key = format("%v#%v", "bitnami/postgresql", var.postgresql_tag)
postgres_exporter_key = format("%v#%v", "bitnami/postgres-exporter", var.postgres_exporter_tag)
# tflint-ignore: terraform_unused_declarations
utilities_key = format("%v#%v", "big-bang/utilities", "1.0.3")
ent_ecr_source = format("%v.%v.%v.%v", var.eecr_info.account_id, "dkr.ecr", var.region, "amazonaws.com/ent-images")
utilities_key = format("%v#%v", "big-bang/utilities", var.utilities_tag)
ent_ecr_source = format("%v.%v.%v.%v", var.eecr_info.account_id, "dkr.ecr", var.region, "amazonaws.com/ent-images")

image_config = [
{
Expand Down Expand Up @@ -41,8 +40,8 @@ locals {
name = "big-bang/utilities"
source_image = "big-bang/utilities"
source_registry = format("%v/%v", local.ent_ecr_source, "ironbank")
source_tag = "1.0.3"
tag = "1.0.3"
source_tag = var.utilities_tag
tag = var.utilities_tag
},
]
}
Expand Down
12 changes: 4 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ module "pre_install" {
service_account_name = module.service_account.service_account_name
job_name = "keycloak-config-secret-job"
config_script = local.secrets_job_script
region = var.region
cluster_name = var.cluster_name

timeout = "5m"
utilities_image_path = module.images.images[local.utilities_key].dest_full_path
timeout = "5m"
}

resource "helm_release" "keycloak-db" {
Expand Down Expand Up @@ -150,8 +148,7 @@ module "keycloak_db_config" {
service_account_name = module.service_account.service_account_name
job_name = "keycloak-db-config-job"
config_script = local.db_config_job_script
region = var.region
cluster_name = var.cluster_name
utilities_image_path = module.images.images[local.utilities_key].dest_full_path

timeout = "3m"
}
Expand Down Expand Up @@ -208,8 +205,7 @@ module "post_install" {
service_account_name = module.service_account.service_account_name
job_name = "keycloak-config-job"
config_script = local.config_job_script
region = var.region
cluster_name = var.cluster_name
utilities_image_path = module.images.images[local.utilities_key].dest_full_path

timeout = "10m"
}

0 comments on commit 0bb378f

Please sign in to comment.