Skip to content

Commit

Permalink
fix postgres db & user
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp committed Oct 16, 2024
1 parent 1f0e7d0 commit 89c6e56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/app/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- $keycloackAuthURL:= .Values.global.secrets.keycloakAuthURL }}

#database
{{- $databaseUser := .Values.global.secrets.databaseUser| default "nr-site" }} # look at auth section in values.yaml of bitnamipg if it is used.
{{- $databaseUser := .Values.global.secrets.databaseUser| default "site" }} # look at auth section in values.yaml of bitnamipg if it is used.
{{- $databaseAdminUser := "postgres" }}
{{- $databasePassword := .Values.global.secrets.databasePassword | default (randAlphaNum 24) }}
{{- $databaseAdminPassword := .Values.global.secrets.databaseAdminPassword | default (randAlphaNum 24) }}
Expand All @@ -17,7 +17,7 @@
# set below to existing secret data or generate a random one when not exists
{{- $databaseAdminPassword = (get $secretData "postgres-password") | default ($databasePassword | b64enc) }}
{{- $databasePassword = (get $secretData "password") | default ($databasePassword | b64enc) }}
{{- $databaseName := .Values.global.secrets.databaseName| default "nr-site" }} # look at auth section in values.yaml of bitnamipg if it is used.
{{- $databaseName := .Values.global.secrets.databaseName| default "site" }} # look at auth section in values.yaml of bitnamipg if it is used.
{{- $host := printf "%s-%s:5432" .Release.Name .Values.global.databaseAlias }}
{{- $port := printf "5432" }}
{{- $hostWithoutPort := printf "%s-%s" .Release.Name .Values.global.databaseAlias }}
Expand Down
4 changes: 2 additions & 2 deletions charts/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ bitnami-pg:
registry: artifacts.developer.gov.bc.ca/docker-remote
auth:
existingSecret: '{{ .Release.Name }}-database'
username: 'nr-site'
database: 'nr-site'
username: 'site'
database: 'site'
shmVolume:
enabled: false
backup:
Expand Down

0 comments on commit 89c6e56

Please sign in to comment.