From 71ccef660cf22e3b9ff4f7d472154c57469e4b45 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 21 Apr 2025 13:17:27 -0400 Subject: [PATCH] exporter --- README.md | 1 + copy_images.tf | 5 +++-- variables.tf | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf0dbf2..abd9289 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Common issues and solutions: | [keycloak\_namespace](#input\_keycloak\_namespace) | The namespace which will be created and into which keycloak will be deployed. | `string` | `"keycloak"` | no | | [keycloak\_tag](#input\_keycloak\_tag) | The image tag associated with the keycloak\_chart\_version | `string` | `"26.0.7"` | no | | [keycloak\_user](#input\_keycloak\_user) | The username for the database. | `string` | `"keycloak"` | no | +| [postgres\_exporter\_tag](#input\_postgres\_exporter\_tag) | The tag of the postgres exporter image to use. | `string` | `"17.4.0"` | no | | [postgresql\_chart\_version](#input\_postgresql\_chart\_version) | The helm chart version of postgresql to use. | `string` | `"17.4.0"` | no | | [postgresql\_tag](#input\_postgresql\_tag) | The tag of the postgresql image to use. | `string` | `"17.4.0"` | no | | [profile](#input\_profile) | AWS config profile used to upload images into ECR | `string` | `""` | no | diff --git a/copy_images.tf b/copy_images.tf index 794a3a9..4fbcd13 100644 --- a/copy_images.tf +++ b/copy_images.tf @@ -2,6 +2,7 @@ locals { keycloak_name = "keycloak/keycloak" 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) kubectl_key = format("%v#%v", "bitnami/kubectl-debian", var.utilities_tag) ent_ecr_source = format("%v.%v.%v.%v", var.eecr_info.account_id, "dkr.ecr", var.region, "amazonaws.com/ent-images") @@ -30,8 +31,8 @@ locals { name = "bitnami/postgres-exporter" source_image = "bitnami/postgres-exporter" source_registry = format("%v/%v", local.ent_ecr_source, "docker-io") - source_tag = var.postgresql_tag - tag = var.postgresql_tag + source_tag = var.postgres_exporter_tag + tag = var.postgres_exporter_tag }, { enabled = true diff --git a/variables.tf b/variables.tf index a84453f..5dc83cb 100644 --- a/variables.tf +++ b/variables.tf @@ -97,6 +97,12 @@ variable "postgresql_tag" { default = "17.4.0" } +variable "postgres_exporter_tag" { + description = "The tag of the postgres exporter image to use." + type = string + default = "17.4.0" +} + variable "region" { description = "AWS region" type = string