Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
feat: permit overriding the helm Release name
Browse files Browse the repository at this point in the history
solves @luanaBanana issue regarding helm release name
  • Loading branch information
clementnuss committed Nov 22, 2022
1 parent 4963c66 commit 5d1c0bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ytt/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 5d1c0bd

Please sign in to comment.