From 4b291d943e8ec5be05a62424a97532c729b2c49a Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Tue, 21 Jan 2025 16:54:56 -0500 Subject: [PATCH] add new var for rlease_version --- README.md | 1 + eks_console_access.tf | 2 +- variables.tf | 9 ++++----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5160189..0fdd44c 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ sys 0m2.015s | [cluster\_name](#input\_cluster\_name) | EKS cluster name name component used through out the EKS cluster describing its purpose (ex: dice-dev) | `string` | n/a | yes | | [operators\_ns](#input\_operators\_ns) | Namespace to create where operators will be installed. | `string` | `"operators"` | no | | [region](#input\_region) | AWS region | `string` | n/a | yes | +| [release\_version](#input\_release\_version) | The version of helm charts to use | `string` | n/a | yes | | [security\_group\_all\_worker\_mgmt\_id](#input\_security\_group\_all\_worker\_mgmt\_id) | The security group representing all of the worker nodes in the cluster. | `string` | n/a | yes | | [subnets](#input\_subnets) | Specify the subnets used by this cluster | `list(string)` | n/a | yes | | [tag\_costallocation](#input\_tag\_costallocation) | Tag CostAllocation (default) | `string` | `"csvd:infrastructure"` | no | diff --git a/eks_console_access.tf b/eks_console_access.tf index dd6a46b..9a06fa5 100644 --- a/eks_console_access.tf +++ b/eks_console_access.tf @@ -96,6 +96,6 @@ resource "helm_release" "console_access" { chart = each.key name = each.key namespace = "default" - version = local.release_version + version = var.release_version repository = "./${each.key}" } diff --git a/variables.tf b/variables.tf index 9b69a09..ac97721 100644 --- a/variables.tf +++ b/variables.tf @@ -42,11 +42,10 @@ variable "tags" { default = {} } -# variable "kubectl_image_tag" { -# description = "The version of bitnami/kubectl image to use." -# type = string -# default = "1.30.4" -# } +variable "release_version" { + description = "The version of helm charts to use" + type = string +} # # helm add repo autoscaler "https://kubernetes.github.io/autoscaler" # # helm search repo -l autoscaler/cluster-autoscaler