From a5a6827f56e68a381160261ccf8fa653ae6e38cc Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 20 Dec 2024 00:15:02 +0100 Subject: [PATCH] Configurable env vars --- chart/templates/deployment-backend.yaml | 3 +++ chart/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/chart/templates/deployment-backend.yaml b/chart/templates/deployment-backend.yaml index 7f3e0fd43..4084a7230 100644 --- a/chart/templates/deployment-backend.yaml +++ b/chart/templates/deployment-backend.yaml @@ -64,6 +64,9 @@ spec: value: {{ .Values.base.namespace }} - name: JSON_LOGS_ENABLED value: "true" + {{- with .Values.backend.env -}} + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: {{ include "hangar.fullname" . }}-backend-config-volume mountPath: /hangar/config diff --git a/chart/values.yaml b/chart/values.yaml index 02394c8a9..709199f43 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -187,6 +187,8 @@ backend: envFrom: {} + env: {} + config: postgresql: hostname: "hangar-postgresql"