From 314f794b078b4a66fb12711051463f911b4aabdc Mon Sep 17 00:00:00 2001 From: DaniellaFreese Date: Mon, 2 Oct 2023 15:09:00 -0400 Subject: [PATCH] external secrets boolean --- locals.tf | 2 ++ main.tf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/locals.tf b/locals.tf index 4fcdf4d..2347980 100644 --- a/locals.tf +++ b/locals.tf @@ -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) diff --git a/main.tf b/main.tf index a8edc35..6f868cc 100644 --- a/main.tf +++ b/main.tf @@ -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"