Skip to content

Commit

Permalink
Merge pull request #20 from harness/SMP-937
Browse files Browse the repository at this point in the history
fix for connection string
  • Loading branch information
harness-jc committed Apr 13, 2023
2 parents e63295d + 2a70d41 commit 4b4721c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.11
version: 1.0.12

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 2 additions & 2 deletions src/common/templates/_databasehelpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
{{- $firsthost := (index .hosts 0) }}
{{- $protocol := .protocol }}
{{- $extraArgs := .extraArgs }}
{{- $connectionString := (printf "%s://${%s_USER}:$(%s_PASSWORD)@%s" $protocol $dbType $dbType $firsthost) }}
{{- $connectionString := (printf "%s://$(%s_USER):$(%s_PASSWORD)@%s" $protocol $dbType $dbType $firsthost) }}
{{- if $extraArgs }}
{{- $connectionString = (printf "%s%s" $connectionString $extraArgs ) }}
{{- end }}
{{- range $host := (rest .hosts) }}
{{- $connectionString = printf "%s,%s://${%s_USER}:$(%s_PASSWORD)@%s" $connectionString $protocol $dbType $dbType $host }}
{{- $connectionString = printf "%s,%s://$(%s_USER):$(%s_PASSWORD)@%s" $connectionString $protocol $dbType $dbType $host }}
{{- if $extraArgs }}
{{- $connectionString = (printf "%s%s" $connectionString $extraArgs ) }}
{{- end }}
Expand Down

0 comments on commit 4b4721c

Please sign in to comment.