Skip to content

Commit

Permalink
Revert change to helm helper functions for OPA
Browse files Browse the repository at this point in the history
  • Loading branch information
arya-harness committed Feb 7, 2024
1 parent a550851 commit ec1fae9
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.3.10
version: 1.3.11

# 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/_databaseconnectionsv2.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ USAGE:
{{- $sslMode := default "disable" .sslMode }}
{{- if $installed }}
{{- if $keywordValueConnectionString }}
{{- $connectionString := (printf "host=%s user=$%s password=$%s dbname=%s sslmode=%s" "postgres" $userVariableName $passwordVariableName .database $sslMode) }}
{{- $connectionString := (printf "host=%s user=%s password=%s dbname=%s sslmode=%s" "postgres" $userVariableName $passwordVariableName .database $sslMode) }}
{{- printf "%s" $connectionString }}
{{- else }}
{{- $connectionString := (printf "%s://$(%s):$(%s)@%s/%s?%s" "postgres" $userVariableName $passwordVariableName "postgres:5432" .database .args) }}
Expand All @@ -519,7 +519,7 @@ USAGE:
{{- $firsthostport := (index $hosts 0) -}}
{{- $hostport := split ":" $firsthostport -}}
{{- if $keywordValueConnectionString }}
{{- $connectionString := (printf "host=%s user=$%s password=$%s dbname=%s sslmode=%s" $hostport._0 $userVariableName $passwordVariableName .database $sslMode) }}
{{- $connectionString := (printf "host=%s user=%s password=%s dbname=%s sslmode=%s" $hostport._0 $userVariableName $passwordVariableName .database $sslMode) }}
{{- printf "%s" $connectionString }}
{{- else }}
{{- include "harnesscommon.dbconnection.connection" (dict "type" $type "hosts" $hosts "protocol" $protocol "extraArgs" $finalArgs "userVariableName" $userVariableName "passwordVariableName" $passwordVariableName)}}
Expand Down

0 comments on commit ec1fae9

Please sign in to comment.