Skip to content

Commit

Permalink
external secrets boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniellaFreese committed Oct 2, 2023
1 parent 3031da0 commit 314f794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ locals {
repository = try(var.kong_config.repository, "https://charts.konghq.com")
values = try(var.kong_config.values, [])

enable_external_secrets = try(var.kong_config.add_ons.enable_external_secrets, true)

cluster_dns = try(var.kong_config.cluster_dns, null)
telemetry_dns = try(var.kong_config.telemetry_dns, null)
cert_secret_name = try(var.kong_config.cert_secret_name, null)
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ resource "kubernetes_namespace_v1" "kong" {
###########AddOns for Cluster. Note the module name has addon"s"###########

module "add_ons" {
count = local.enable_external_secrets ? 1 : 0

source = "aws-ia/eks-blueprints-addons/aws"
version = "1.1.0"

Expand Down

0 comments on commit 314f794

Please sign in to comment.