From 06e5fb65d3069609d3b367fceb469688716df962 Mon Sep 17 00:00:00 2001 From: avouacr Date: Fri, 28 Jun 2024 14:14:45 +0000 Subject: [PATCH] fix(label-studio): add env variables for psql --- charts/label-studio/Chart.yaml | 2 +- charts/label-studio/templates/deployment.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/label-studio/Chart.yaml b/charts/label-studio/Chart.yaml index 96fdf56..9777c45 100644 --- a/charts/label-studio/Chart.yaml +++ b/charts/label-studio/Chart.yaml @@ -20,7 +20,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0 +version: 1.1.0 dependencies: - name: postgresql diff --git a/charts/label-studio/templates/deployment.yaml b/charts/label-studio/templates/deployment.yaml index 23c7c56..836b122 100644 --- a/charts/label-studio/templates/deployment.yaml +++ b/charts/label-studio/templates/deployment.yaml @@ -47,6 +47,18 @@ spec: value: "https://{{ .Values.s3.endpoint }}" - name: S3-region value: {{ .Values.s3.defaultRegion }} + - name: DJANGO_DB + value: default + - name: POSTGRE_NAME + value: postgres + - name: POSTGRE_USER + value: {{ .Values.postgresql.username }} + - name: POSTGRE_PASSWORD + value: {{ .Values.postgresql.password }} + - name: POSTGRE_PORT + value: 5432 + - name: POSTGRE_HOST + value: {{ .Values.postgresql.fullnameOverride }} ports: - name: http containerPort: 8080