Skip to content

Commit

Permalink
Optionally do not create TLS cert secret
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 committed Jun 24, 2020
1 parent 8633680 commit 8a85e81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resource "kubernetes_secret" "astronomer_bootstrap" {
}

resource "kubernetes_secret" "astronomer_tls" {
count = var.tls_cert != "" && var.tls_key != "" ? 1 : 0
depends_on = [null_resource.dependency_getter]

metadata {
Expand Down
2 changes: 2 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ variable "db_connection_string" {
}

variable "tls_cert" {
default = ""
type = string
description = "The signed certificate for the Astronomer Load Balancer. It should be signed by a certificate authorize and should have common name *.base_domain"
}

variable "tls_key" {
default = ""
type = string
description = "The private key corresponding to the signed certificate tls_cert."
}
Expand Down

0 comments on commit 8a85e81

Please sign in to comment.