Skip to content

Commit

Permalink
Fix Postgres env var names in migration job (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low authored Nov 7, 2024
1 parent 8a58e49 commit 302064e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions helm/osmcha/templates/migrations-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,18 @@ spec:
- -c
- python manage.py migrate
env:
- name: POSTGRES_HOST
value: {{ .Values.app.api.postgres_host}}
- name: PGHOST
value: {{ .Values.app.api.postgres_host}}
- name: POSTGRES_PORT
- name: PGPORT
value: "5432"
- name: POSTGRES_USER
- name: PGUSER
value: {{ .Values.app.api.postgres_user}}
- name: POSTGRES_PASSWORD
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: osmcha-db-credentials
key: password
- name: POSTGRES_DATABASE
- name: PGDATABASE
value: {{ .Values.app.api.postgres_database}}
- name: DJANGO_SECRET_KEY
valueFrom:
Expand All @@ -51,11 +49,9 @@ spec:
key: django_secret_key
- name: DJANGO_SETTINGS_MODULE
value: "config.settings.production"
- name: OSMCHA_FRONTEND_VERSION
value: {{ .Values.app.api.frontend_tag }}
- name: REDIS_URL
value: {{ .Values.app.api.redis_url }}
restartPolicy: Never
backoffLimit: 0
parallelism: 1
completions: 1
completions: 1

0 comments on commit 302064e

Please sign in to comment.