From 43c12b444232d617e2724792204561e27caffd69 Mon Sep 17 00:00:00 2001 From: Tobias Birmili Date: Tue, 7 Jul 2020 09:49:07 +0200 Subject: [PATCH] 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" }