From 766195ee57ecf98496f910c1ee81b918e8e313b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Buja=C4=8Dek?= Date: Mon, 13 Jul 2020 14:42:14 +0200 Subject: [PATCH] Remove deprecated data "helm_repository" --- README.md | 1 - main.tf | 8 +------- variables.tf | 4 ---- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/README.md b/README.md index 11defad..6987a38 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ A terraform module to deploy an Application Load Balancer (ALB) Ingress Controll | helm\_chart\_name | n/a | `string` | `"aws-alb-ingress-controller"` | no | | helm\_chart\_version | n/a | `string` | `"0.1.13"` | no | | helm\_release\_name | n/a | `string` | `"aws-alb-ingress-controller"` | no | -| helm\_repo\_name | n/a | `string` | `"eks-incubator"` | no | | helm\_repo\_url | n/a | `string` | `"http://storage.googleapis.com/kubernetes-charts-incubator"` | no | | ingress\_class | n/a | `string` | `"alb-ingress"` | no | | k8s\_namespace | The k8s namespace in which the alb-ingress service account has been created | `string` | `"alb-ingress"` | no | diff --git a/main.tf b/main.tf index 581ff13..210a58a 100644 --- a/main.tf +++ b/main.tf @@ -1,14 +1,8 @@ -data "helm_repository" "default" { - depends_on = [var.mod_dependency] - name = var.helm_repo_name - url = var.helm_repo_url -} - resource "helm_release" "alb_ingress" { depends_on = [var.mod_dependency] count = var.enabled ? 1 : 0 name = var.helm_release_name - repository = data.helm_repository.default.metadata[0].name + repository = var.helm_repo_url chart = var.helm_chart_name namespace = var.k8s_namespace version = var.helm_chart_version diff --git a/variables.tf b/variables.tf index 216595c..2a2312f 100644 --- a/variables.tf +++ b/variables.tf @@ -32,10 +32,6 @@ variable "helm_release_name" { default = "aws-alb-ingress-controller" } -variable "helm_repo_name" { - default = "eks-incubator" -} - variable "helm_repo_url" { default = "http://storage.googleapis.com/kubernetes-charts-incubator" }