From d55189e5bbe3c98153d96c92f4ad020b5ffada7b Mon Sep 17 00:00:00 2001 From: ichy Date: Wed, 18 Sep 2019 20:05:29 +0900 Subject: [PATCH] [stable/node-red] add support for extra environment variables (#17207) * support for extra environment variables Signed-off-by: y-matsuda * bump up version of stable/node-red Signed-off-by: y-matsuda * fix typo Signed-off-by: y-matsuda --- stable/node-red/Chart.yaml | 2 +- stable/node-red/README.md | 1 + stable/node-red/templates/deployment.yaml | 3 +++ stable/node-red/values.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/node-red/Chart.yaml b/stable/node-red/Chart.yaml index d13dcac94c..97bd6fa857 100644 --- a/stable/node-red/Chart.yaml +++ b/stable/node-red/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 0.20.7 description: Node-RED is flow-based programming for the Internet of Things name: node-red -version: 1.3.1 +version: 1.3.2 keywords: - nodered - node-red diff --git a/stable/node-red/README.md b/stable/node-red/README.md index 5a64e13f60..99ea18eaec 100644 --- a/stable/node-red/README.md +++ b/stable/node-red/README.md @@ -44,6 +44,7 @@ The following tables lists the configurable parameters of the Node-RED chart and | `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | | `flows` | Default flows configuration | `flows.json` | | `nodeOptions` | Node.js runtime arguments | `` | +| `extraEnvs` | Extra environment variables which will be appended to the env | `[]` | | `timezone` | Default timezone | `UTC` | | `service.type` | Kubernetes service type for the GUI | `ClusterIP` | | `service.port` | Kubernetes port where the GUI is exposed | `1880` | diff --git a/stable/node-red/templates/deployment.yaml b/stable/node-red/templates/deployment.yaml index 576694f7b4..d2c3a9f816 100644 --- a/stable/node-red/templates/deployment.yaml +++ b/stable/node-red/templates/deployment.yaml @@ -44,6 +44,9 @@ spec: value: "{{ .Values.nodeOptions }}" - name: TZ value: "{{ .Values.timezone }}" + {{- with .Values.extraEnvs }} +{{ toYaml .Values.extraEnvs | indent 12 }} + {{- end }} volumeMounts: - name: data mountPath: /data diff --git a/stable/node-red/values.yaml b/stable/node-red/values.yaml index e9641eda2f..b1aad0b29a 100644 --- a/stable/node-red/values.yaml +++ b/stable/node-red/values.yaml @@ -15,6 +15,7 @@ fullnameOverride: "" flows: "flows.json" # nodeOptions: "" +extraEnvs: [] timezone: "UTC" service: