Skip to content

Commit

Permalink
Optionally don't install Astronomer (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 authored May 8, 2020
1 parent a7c04bc commit 8633680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions astronomer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ resource "null_resource" "helm_repo" {
}

resource "helm_release" "astronomer_local" {
count = var.install_astronomer_helm_chart ? 1 : 0

depends_on = [null_resource.helm_repo,
null_resource.dependency_getter,
kubernetes_secret.astronomer_bootstrap,
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ variable "astronomer_helm_values" {
description = "Values in raw yaml to pass to helm to override defaults in Astronomer Helm Chart."
default = ""
}

variable "install_astronomer_helm_chart" {
type = bool
default = true
description = "When false, this module skips installing the Astronomer helm chart. This is useful if you want to manage Astronomer outside of Terraform"
}

0 comments on commit 8633680

Please sign in to comment.