From 4370a4711f0ac28e0bcefb2dc21a72df512c2632 Mon Sep 17 00:00:00 2001 From: Victor Azizi Date: Wed, 12 Jun 2024 11:04:56 +0200 Subject: [PATCH] ui: allow additionalEnvs for greater flexibility (implemented as in rucio-server) --- charts/rucio-ui/Chart.yaml | 2 +- charts/rucio-ui/templates/deployment.yaml | 3 +++ charts/rucio-ui/values.yaml | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/charts/rucio-ui/Chart.yaml b/charts/rucio-ui/Chart.yaml index c9232ef1..a1e10930 100644 --- a/charts/rucio-ui/Chart.yaml +++ b/charts/rucio-ui/Chart.yaml @@ -1,5 +1,5 @@ name: rucio-ui -version: 34.0.3 +version: 34.0.4 apiVersion: v1 description: A Helm chart to deploy webui servers for Rucio keywords: diff --git a/charts/rucio-ui/templates/deployment.yaml b/charts/rucio-ui/templates/deployment.yaml index ae11c326..1afff14c 100644 --- a/charts/rucio-ui/templates/deployment.yaml +++ b/charts/rucio-ui/templates/deployment.yaml @@ -169,6 +169,9 @@ spec: - name: RUCIO_ENABLE_SSL value: "True" {{- end }} +{{- with .Values.additionalEnvs }} +{{ toYaml . | indent 12 }} +{{- end}} resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.imagePullSecrets }} diff --git a/charts/rucio-ui/values.yaml b/charts/rucio-ui/values.yaml index 7eba0367..b12c39b4 100644 --- a/charts/rucio-ui/values.yaml +++ b/charts/rucio-ui/values.yaml @@ -155,6 +155,14 @@ config: # For a list, please see: https://github.com/rucio/containers/blob/master/ui/README.md optional_config: {} +# Additional environment, copy-pasted as-is, which, for example, allows environment variables to refer to secrets +additionalEnvs: [] +# - name: RUCIO_CFG_DATABASE_DEFAULT +# valueFrom: +# secretKeyRef: +# name: rucio-server +# key: RUCIO_CFG_DATABASE_DEFAULT + resources: {} # limits: