From 25f4f3bd5421cac539f4ff52146388007c796385 Mon Sep 17 00:00:00 2001 From: Jonathan Bartlett <34320158+Jonnobrow@users.noreply.github.com> Date: Tue, 31 May 2022 15:11:53 +0100 Subject: [PATCH] Fix loading environment variables for backend (#1591) --- charts/stable/mealie/Chart.yaml | 8 +++----- charts/stable/mealie/templates/common.yaml | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/charts/stable/mealie/Chart.yaml b/charts/stable/mealie/Chart.yaml index bbab8113..c88f9d98 100644 --- a/charts/stable/mealie/Chart.yaml +++ b/charts/stable/mealie/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 appVersion: v1.0.0beta-2 description: Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. name: mealie -version: 5.0.0 +version: 5.0.1 kubeVersion: ">=1.16.0-0" keywords: - grocy @@ -22,7 +22,5 @@ dependencies: version: 4.4.2 annotations: artifacthub.io/changes: |- - - kind: changed - description: Removed `postgresql` chart dependency. - - kind: changed - description: "**BREAKING** Updated mealie to v1.0.0beta-2. Please check the application documentation for upgrade steps." + - kind: fixed + description: Fixed loading API environment variables. diff --git a/charts/stable/mealie/templates/common.yaml b/charts/stable/mealie/templates/common.yaml index e187ddb8..5cdd01ee 100644 --- a/charts/stable/mealie/templates/common.yaml +++ b/charts/stable/mealie/templates/common.yaml @@ -14,6 +14,10 @@ additionalContainers: env: - name: API_PORT value: "9000" + {{- range $name, $value := .Values.api.env }} + - name: {{ $name }} + value: {{ $value }} + {{- end }} ports: - name: api containerPort: 9000