Skip to content

Commit

Permalink
Add env var for Settings for PostgreSQL client
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jan 29, 2025
1 parent 6a3c690 commit 747edb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions osm-seed/templates/osmcha-app/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ data:
POSTGRES_PASSWORD: {{ .Values.osmchaDb.env.POSTGRES_PASSWORD | quote }}
POSTGRES_DATABASE: {{ .Values.osmchaDb.env.POSTGRES_DB | quote }}
POSTGRES_DB: {{ .Values.osmchaDb.env.POSTGRES_DB | quote }}
PGPORT: "5432"
PGUSER: {{ .Values.osmchaDb.env.POSTGRES_USER | quote }}
PGPASSWORD: {{ .Values.osmchaDb.env.POSTGRES_PASSWORD | quote }}
PGDATABASE: {{ .Values.osmchaDb.env.POSTGRES_DB | quote }}
# API
DJANGO_SECRET_KEY: {{ .Values.osmchaApi.env.DJANGO_SECRET_KEY | quote }}
DJANGO_SETTINGS_MODULE: {{ .Values.osmchaApi.env.DJANGO_SETTINGS_MODULE | quote }}
Expand All @@ -37,6 +41,10 @@ data:
REACT_APP_MAPBOX_ACCESS_TOKEN: {{ .Values.osmchaApi.env.REACT_APP_MAPBOX_ACCESS_TOKEN | quote }}
OAUTH2_OSM_KEY: {{ quote .Values.osmchaApi.env.OAUTH2_OSM_KEY }}
OAUTH2_OSM_SECRET: {{ quote .Values.osmchaApi.env.OAUTH2_OSM_SECRET }}




---
apiVersion: v1
kind: ConfigMap
Expand Down
2 changes: 1 addition & 1 deletion osm-seed/templates/osmcha-app/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
pg_isready -h $POSTGRES_HOST -p 5432 >/dev/null 2>&2 || continue
flag=false
python manage.py migrate
python manage.py collectstatic
python manage.py collectstatic --noinput
mkdir -p /staticfiles/static
cp -r /app/staticfiles/* /staticfiles/static/
done
Expand Down

0 comments on commit 747edb7

Please sign in to comment.