diff --git a/locals.tf b/locals.tf index 5be96c2..4e1af86 100644 --- a/locals.tf +++ b/locals.tf @@ -6,14 +6,11 @@ global: baseDomain: ${var.base_domain} tlsSecret: astronomer-tls istioEnabled: ${var.enable_istio == "true" ? true : false} - nginx: loadBalancerIP: ${var.load_balancer_ip == "" ? "~" : var.load_balancer_ip} privateLoadBalancer: ${var.cluster_type == "private" ? true : false} perserveSourceIP: true - %{if var.enable_gvisor == "true"} - platformNodePool: affinity: nodeAffinity: @@ -24,7 +21,6 @@ nginx: operator: In values: - "false" - deploymentNodePool: affinity: nodeAffinity: @@ -40,10 +36,14 @@ nginx: key: sandbox.gke.io/runtime operator: Equal value: gvisor - astronomer: houston: config: + %{if var.smtp_uri != ""} + email: + enabled: true + smtpUrl: ${var.smtp_uri} + %{endif} helm: affinity: nodeAffinity: @@ -59,9 +59,7 @@ astronomer: key: sandbox.gke.io/runtime operator: Equal value: gvisor - %{endif} EOF } - diff --git a/variables.tf b/variables.tf index b563bda..44c5af4 100644 --- a/variables.tf +++ b/variables.tf @@ -56,4 +56,7 @@ variable "enable_gvisor" { type = string } - +variable "smtp_uri" { + default = "" + type = string +}