Skip to content

Commit

Permalink
fix: remove deprecated data source
Browse files Browse the repository at this point in the history
  • Loading branch information
toabi committed Jul 7, 2020
1 parent 2174198 commit 43c12b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
8 changes: 1 addition & 7 deletions main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 43c12b4

Please sign in to comment.