From 302064e9bb7dace92070da8512eade70c5a2a8f2 Mon Sep 17 00:00:00 2001 From: Jake Low Date: Wed, 6 Nov 2024 20:29:44 -0800 Subject: [PATCH] Fix Postgres env var names in migration job (#46) --- helm/osmcha/templates/migrations-job.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/helm/osmcha/templates/migrations-job.yaml b/helm/osmcha/templates/migrations-job.yaml index 5eab91d..81c5f68 100644 --- a/helm/osmcha/templates/migrations-job.yaml +++ b/helm/osmcha/templates/migrations-job.yaml @@ -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: @@ -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 \ No newline at end of file + completions: 1