From 2d7f65ac2a7db3b5c260e0479bf2f82a6a407752 Mon Sep 17 00:00:00 2001 From: Sven Dolderer Date: Tue, 17 Sep 2024 16:45:25 +0200 Subject: [PATCH] helm chart extended by env variables #3427 --- sechub-webui-solution/helm/sechub-webui/Chart.yaml | 2 +- .../helm/sechub-webui/templates/deployment.yaml | 6 ++++++ sechub-webui-solution/helm/sechub-webui/values.yaml | 12 ++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/sechub-webui-solution/helm/sechub-webui/Chart.yaml b/sechub-webui-solution/helm/sechub-webui/Chart.yaml index cd70b53fbf..924c910ed3 100644 --- a/sechub-webui-solution/helm/sechub-webui/Chart.yaml +++ b/sechub-webui-solution/helm/sechub-webui/Chart.yaml @@ -14,4 +14,4 @@ maintainers: # This version number should be incremented each time you make changes to the chart and its templates. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.0 +version: 0.3.0 diff --git a/sechub-webui-solution/helm/sechub-webui/templates/deployment.yaml b/sechub-webui-solution/helm/sechub-webui/templates/deployment.yaml index 5d1c7c443d..09b395642b 100644 --- a/sechub-webui-solution/helm/sechub-webui/templates/deployment.yaml +++ b/sechub-webui-solution/helm/sechub-webui/templates/deployment.yaml @@ -111,6 +111,12 @@ spec: # Spring profiles definition - name: SPRING_PROFILES_ACTIVE value: "{{ .Values.webui.spring.profiles }}" +{{- if .Values.env }} + # ------------------------------------------------------------------------# + # Scope: Additional environment variables for the SecHub web-ui container + # ----------------------------------------------------------------------- # + {{ .Values.env | indent 8 | trim }} +{{- end }} {{- if .Values.deploymentComment }} # Setting DEPLOYMENT_COMMENT to a different value every time forces k8s to spin up a new container. # This way, you can force deployments e.g. when secrets have changed. diff --git a/sechub-webui-solution/helm/sechub-webui/values.yaml b/sechub-webui-solution/helm/sechub-webui/values.yaml index 5335af5f28..c3e52e3692 100644 --- a/sechub-webui-solution/helm/sechub-webui/values.yaml +++ b/sechub-webui-solution/helm/sechub-webui/values.yaml @@ -92,6 +92,18 @@ service: # prometheus.io/port: "10250" # prometheus.io/path: "/actuator/prometheus" +# ----------------------------------------------------------------------------------------------# +# Optional: Additional environment variables for the SecHub web-ui container +# --------------------------------------------------------------------------------------------- # +# env: |- +# - name: SECHUB_EXAMPLE_VAR1 +# value: "value1" +# - name: SECHUB_EXAMPLE_VAR2 +# valueFrom: +# secretKeyRef: +# name: secret-webui-example +# key: password + go_mmproxy: # Log the real client IP addresses via a go-mmproxy sidecar container # Otherwise one sees only the loadbalancer's IP in the logs.