From 5d1c0bd1183d4dda328347a787cd7bb1b3ebc876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nussbaumer?= Date: Tue, 22 Nov 2022 11:07:27 +0100 Subject: [PATCH] feat: permit overriding the helm Release name solves @luanabanana issue regarding helm release name --- ytt/plugin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ytt/plugin.go b/ytt/plugin.go index b6c822a..c097d87 100644 --- a/ytt/plugin.go +++ b/ytt/plugin.go @@ -43,6 +43,11 @@ stringData: func renderHelmChart() { appNs, _ := os.LookupEnv("ARGOCD_APP_NAMESPACE") appName, _ := os.LookupEnv("ARGOCD_APP_NAME") + helmReleaseName, customReleaseDefined := os.LookupEnv("ARGOCD_ENV_HELM_RELEASE_NAME") + + if customReleaseDefined { + appName = helmReleaseName + } if appNs == "" { toDebug("#! the namespace of the application isn't defined. not possible to render the Helm Chart without that.")