From cd59c5987f4c661b298447ab08e13238b22888fb Mon Sep 17 00:00:00 2001 From: Laurent Marchelli Date: Fri, 22 Nov 2024 09:38:29 +0100 Subject: [PATCH] feat: Allows template inside .Values.env (#365) * feat: Allows templating inside .Values.env Signed-off-by: MARCHELLI Laurent * chore: bump version of chart Signed-off-by: Engin Diri --------- Signed-off-by: MARCHELLI Laurent Signed-off-by: Engin Diri Co-authored-by: Engin Diri --- charts/node-red/Chart.yaml | 4 ++-- charts/node-red/README.md | 6 +++--- charts/node-red/templates/deployment.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/node-red/Chart.yaml b/charts/node-red/Chart.yaml index 44240ffe..6e6d34e6 100644 --- a/charts/node-red/Chart.yaml +++ b/charts/node-red/Chart.yaml @@ -9,7 +9,7 @@ icon: https://nodered.org/about/resources/media/node-red-icon-2.png type: application -version: 0.33.0 +version: 0.33.1 appVersion: 4.0.3 keywords: @@ -29,7 +29,7 @@ maintainers: annotations: artifacthub.io/containsSecurityUpdates: "false" artifacthub.io/changes: | - - update docker.io/nodered/node-red to 4.0.3 + - Allows template inside .Values.env artifacthub.io/images: | - name: node-red image: docker.io/nodered/node-red:4.0.3 diff --git a/charts/node-red/README.md b/charts/node-red/README.md index 5887587d..06f9208e 100644 --- a/charts/node-red/README.md +++ b/charts/node-red/README.md @@ -1,6 +1,6 @@ # node-red ⚙ -![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=for-the-badge) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge) ![AppVersion: 4.0.3](https://img.shields.io/badge/AppVersion-4.0.3-informational?style=for-the-badge) +![Version: 0.33.1](https://img.shields.io/badge/Version-0.33.1-informational?style=for-the-badge) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge) ![AppVersion: 4.0.3](https://img.shields.io/badge/AppVersion-4.0.3-informational?style=for-the-badge) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/node-red&style=for-the-badge)](https://artifacthub.io/packages/search?repo=node-red) [![SIT](https://img.shields.io/badge/SIT-awesome-blueviolet.svg?style=for-the-badge)](https://jobs.schwarz) @@ -16,7 +16,7 @@ A Helm chart for Node-Red, a low-code programming for event-driven applications To install the chart using the OCI artifact, run: ```bash -helm install node-red oci://ghcr.io/schwarzit/charts/node-red --version 0.33.0 +helm install node-red oci://ghcr.io/schwarzit/charts/node-red --version 0.33.1 ``` ## Usage @@ -32,7 +32,7 @@ helm repo update To install the chart with the release name node-red run: ```bash -helm install node-red node-red/node-red --version 0.33.0 +helm install node-red node-red/node-red --version 0.33.1 ``` After a few seconds, node-red should be running. diff --git a/charts/node-red/templates/deployment.yaml b/charts/node-red/templates/deployment.yaml index 9f611745..2a1d18cb 100644 --- a/charts/node-red/templates/deployment.yaml +++ b/charts/node-red/templates/deployment.yaml @@ -124,7 +124,7 @@ spec: value: {{ .Values.metrics.path | default "/metrics" }} {{- end }} {{- with .Values.env }} - {{- toYaml . | nindent 10 }} + {{- tpl (toYaml .) $ | nindent 10 }} {{- end }} {{- end }} {{- if .Values.envFrom }}