From 9947dfcc8d0a1b02cdb8e97f136ce8436448755a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Steinh=C3=A4user?= <42437185+leonsteinhaeuser@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:27:01 +0100 Subject: [PATCH] fix: argocd namespace overwrite in property file (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Leon Steinhäuser <42437185+leonsteinhaeuser@users.noreply.github.com> --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 710317a..3b817d6 100644 --- a/main.tf +++ b/main.tf @@ -128,7 +128,7 @@ resource "argocd_application_set" "this" { // (e.g. background-staging (assuming "background" is the project and "staging" the folder name)) // otherwise we use the namespace_overwrite provided by the developer // (e.g. background-staging-v2 (assuming "background" is the project and "staging-v2" the namespace_overwrite)) - namespace = var.target_namespace_overwrite != "" ? var.target_namespace_overwrite : "{{ if not .namespace_overwrite }}${var.project_name}-${local.resource_name}{{ else }}${var.project_name}-{{ .namespace_overwrite }}{{ end }}" + namespace = var.target_namespace_overwrite != "" ? var.target_namespace_overwrite : "{{ if not .namespace_overwrite }}${var.project_name}-${local.resource_name}{{ else }}{{ .namespace_overwrite }}{{ end }}" } sync_policy { dynamic "automated" {