From 43c12b444232d617e2724792204561e27caffd69 Mon Sep 17 00:00:00 2001 From: Tobias Birmili Date: Tue, 7 Jul 2020 09:49:07 +0200 Subject: [PATCH 1/2] fix: remove deprecated data source --- main.tf | 8 +------- variables.tf | 4 ---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/main.tf b/main.tf index 055737e..c975edf 100644 --- a/main.tf +++ b/main.tf @@ -1,16 +1,10 @@ -data "helm_repository" "default" { - depends_on = [var.mod_dependency] - name = var.helm_repo_name - url = var.helm_repo_url -} - data "aws_region" "current" {} resource "helm_release" "external_dns" { 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 9935696..d3cd6f4 100644 --- a/variables.tf +++ b/variables.tf @@ -34,10 +34,6 @@ variable "helm_release_name" { default = "external-dns" } -variable "helm_repo_name" { - default = "stable" -} - variable "helm_repo_url" { default = "https://kubernetes-charts.storage.googleapis.com" } From ec1270be20e5664ced4de7c03b042ad8790247d4 Mon Sep 17 00:00:00 2001 From: Tobias Birmili Date: Tue, 7 Jul 2020 13:01:01 +0200 Subject: [PATCH 2/2] Update README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 4fe78bf..22a994a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ A terraform module to deploy an ExternalDNS on Amazon EKS cluster. | helm\_chart\_name | n/a | `string` | `"external-dns"` | no | | helm\_chart\_version | n/a | `string` | `"2.11.0"` | no | | helm\_release\_name | n/a | `string` | `"external-dns"` | no | -| helm\_repo\_name | n/a | `string` | `"stable"` | no | | helm\_repo\_url | n/a | `string` | `"https://kubernetes-charts.storage.googleapis.com"` | no | | k8s\_namespace | The k8s namespace in which the external-dns service account has been created | `string` | `"kube-system"` | no | | k8s\_service\_account\_name | The k8s external-dns service account name | `string` | `"external-dns"` | no |