Skip to content

Commit

Permalink
The postgres user name is fixed to openatlas
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Oct 30, 2024
1 parent e39ca66 commit 4ddcc66
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/auto-deploy-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ postgis:
deploy: ${DEPLOY_DATABASE}
host: "${POSTGRES_HOST}"
name: "${POSTGRES_DB}"
user: "${POSTGRES_USER}"
# ${POSTGRES_PASSWORD} is ignored, it has to be openatlas
password: "${POSTGRES_PASSWORD}"
version: "15-3.4"

Expand Down
1 change: 1 addition & 0 deletions chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
apiVersion: v1
data:
POSTGRES_DB: {{ .Values.postgis.name | default (printf "%s" (include "fullname" .)) | quote }}
POSTGRES_USER: openatlas
kind: ConfigMap
metadata:
annotations:
Expand Down
1 change: 0 additions & 1 deletion chart/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ metadata:
name: {{ template "fullname" . }}-secret
data:
POSTGRES_PASSWORD: {{ (randAlphaNum 16) | b64enc }}
POSTGRES_USER: {{ .Values.postgis.user | default (printf "%s" (include "fullname" .)) | b64enc }}
{{- end -}}
3 changes: 1 addition & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
postgis:
deploy: true
version: "15-3.4"
# Set host, name, user if database is external
# Set host, name if database is external. The user has to be openatlas.
# host: postgres
# name: openatlas-test
# user: openatlas
# Set this to anything also with deploy: true to keep the generated password
# password: openatlas

Expand Down

0 comments on commit 4ddcc66

Please sign in to comment.