From 9bdbfec37319d33a9b6fa53a9c95e7726369a868 Mon Sep 17 00:00:00 2001 From: Juan Fernando Montufar Date: Thu, 4 Jan 2024 11:56:06 -0600 Subject: [PATCH] Added Namespace variable --- terraform/AWS/twistlock-updater.tf | 2 +- terraform/AWS/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/terraform/AWS/twistlock-updater.tf b/terraform/AWS/twistlock-updater.tf index 022a606..1b29a55 100644 --- a/terraform/AWS/twistlock-updater.tf +++ b/terraform/AWS/twistlock-updater.tf @@ -18,7 +18,7 @@ resource "helm_release" "twistlock-updater" { repository = "https://paloaltonetworks.github.io/pcs-cwp-defender-updater" chart = "twistlock-updater" - namespace = "twistlock" + namespace = var.namespace create_namespace = true version = "1.0.0" wait = false diff --git a/terraform/AWS/variables.tf b/terraform/AWS/variables.tf index 50f35e7..e90ffde 100644 --- a/terraform/AWS/variables.tf +++ b/terraform/AWS/variables.tf @@ -9,6 +9,12 @@ variable "cluster_name" { type = string } +variable "namespace" { + description = "Prisma Cloud Defender namespace" + type = string + default = "twistlock" +} + variable "compute_api_endpoint" { description = "Prisma Cloud Compute API Endpoint" type = string