diff --git a/CHANGELOG.md b/CHANGELOG.md index b453705f..54d8be14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Manifest removing () - Fixed dextr deployment () - Migration of `dataset_repo` application () +- Helm settings for external psql database were unused by backend () ### Security diff --git a/helm-chart/templates/cvat_backend/deployment.yml b/helm-chart/templates/cvat_backend/deployment.yml index 9a35c343..dcfc3583 100644 --- a/helm-chart/templates/cvat_backend/deployment.yml +++ b/helm-chart/templates/cvat_backend/deployment.yml @@ -63,6 +63,7 @@ spec: - name: CVAT_REDIS_HOST value: "{{ .Values.redis.external.host }}" {{- end }} + {{- if .Values.postgresql.enabled }} - name: CVAT_POSTGRES_HOST valueFrom: secretKeyRef: @@ -83,6 +84,16 @@ spec: secretKeyRef: name: "{{ .Release.Name }}-{{ .Values.postgresql.secret.name }}" key: postgresql-password + {{- else }} + - name: CVAT_POSTGRES_HOST + value: "{{ .Values.postgresql.external.host }}" + - name: CVAT_POSTGRES_USER + value: "{{ .Values.postgresql.external.user }}" + - name: CVAT_POSTGRES_DBNAME + value: "{{ .Values.postgresql.external.dbname }}" + - name: CVAT_POSTGRES_PASSWORD + value: "{{ .Values.postgresql.external.password }}" + {{- end }} {{- with .Values.cvat.backend.additionalEnv }} {{- toYaml . | nindent 10 }} {{- end }}