diff --git a/aws-eks-addons/main.tf b/aws-eks-addons/main.tf index 654b858..1c62897 100644 --- a/aws-eks-addons/main.tf +++ b/aws-eks-addons/main.tf @@ -36,7 +36,7 @@ resource "helm_release" "aws_lb_controller" { repository = "https://aws.github.io/eks-charts" chart = "aws-load-balancer-controller" namespace = "kube-system" - version = "1.6.1" + version = var.aws_lb_controller_version depends_on = [ kubernetes_service_account.service-account ] @@ -537,7 +537,7 @@ resource "helm_release" "karpenter" { repository_username = data.aws_ecrpublic_authorization_token.token.user_name repository_password = data.aws_ecrpublic_authorization_token.token.password chart = "karpenter" - version = "v0.28.1" + version = var.karpenter_version set { name = "settings.aws.clusterName" diff --git a/aws-eks-addons/variables.tf b/aws-eks-addons/variables.tf index b6395db..88012e1 100644 --- a/aws-eks-addons/variables.tf +++ b/aws-eks-addons/variables.tf @@ -146,6 +146,7 @@ variable "deploy_rancher" { variable "rancher_hostname" { description = "Rancher Hostname" type = string + default = "" } variable "deploy_rancher_monitoring" { @@ -345,3 +346,13 @@ variable "gitops_url" { description = "url of the argocd" default = "https://gitops.platform.mycompany.com" } + +variable "aws_lb_controller_version" { + description = "AWS load balancer controller version" + default = "1.6.1" +} + +variable "karpenter_version" { + description = "Karpenter version" + default = "v0.31.1" +} \ No newline at end of file