Skip to content

Commit

Permalink
chore: fixup renaming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Nov 18, 2024
1 parent 230e593 commit 9fa31a1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions charts/trustify/templates/helpers/_postgres.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ PSQL configuration env-vars.
Arguments (dict):
* root - .
* create-database - create-database object
* database - database object
* prefix - (optional) prefix to the env-var names
*/}}
{{- define "trustification.psql.envVars" }}
- name: {{ .prefix | default "" }}PGHOST
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.host "msg" "Missing value for create-database host" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.host "msg" "Missing value for database host" ) | nindent 2 }}
- name: {{ .prefix | default "" }}PGPORT
{{- include "trustification.common.envVarValue" (.database.port | default "5432") | nindent 2 }}
- name: {{ .prefix | default "" }}PGDATABASE
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.name "msg" "Missing value for create-database name" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.name "msg" "Missing value for database name" ) | nindent 2 }}
- name: {{ .prefix | default "" }}PGUSER
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.username "msg" "Missing value for create-database username" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.username "msg" "Missing value for database username" ) | nindent 2 }}
- name: {{ .prefix | default "" }}PGPASSWORD
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.password "msg" "Missing value for create-database password" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.password "msg" "Missing value for database password" ) | nindent 2 }}
- name: {{ .prefix | default "" }}PGSSLMODE
value: {{ .database.sslMode | default "allow" }}
{{- end }}
Expand All @@ -28,20 +28,20 @@ Postgres configuration env-vars.
Arguments (dict):
* root - .
* create-database - create-database object
* database - database object
* prefix - (optional) prefix to the env-var names
*/}}
{{- define "trustification.postgres.envVars" }}
- name: {{ .prefix | default "TRUSTD_DB_" }}HOST
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.host "msg" "Missing value for create-database host" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.host "msg" "Missing value for database host" ) | nindent 2 }}
- name: {{ .prefix | default "TRUSTD_DB_" }}PORT
{{- include "trustification.common.envVarValue" (.database.port | default "5432") | nindent 2 }}
- name: {{ .prefix | default "TRUSTD_DB_" }}NAME
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.name "msg" "Missing value for create-database name" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.name "msg" "Missing value for database name" ) | nindent 2 }}
- name: {{ .prefix | default "TRUSTD_DB_" }}USER
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.username "msg" "Missing value for create-database username" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.username "msg" "Missing value for database username" ) | nindent 2 }}
- name: {{ .prefix | default "TRUSTD_DB_" }}PASSWORD
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.password "msg" "Missing value for create-database password" ) | nindent 2 }}
{{- include "trustification.common.requiredEnvVarValue" (dict "value" .database.password "msg" "Missing value for database password" ) | nindent 2 }}
- name: {{ .prefix | default "TRUSTD_DB_" }}SSLMODE
value: {{ .database.sslMode | default "allow" }}
{{- end }}

0 comments on commit 9fa31a1

Please sign in to comment.