From 1db8d617555b5c35529aa8090fd2054c369a0c50 Mon Sep 17 00:00:00 2001 From: Milos Backonja <35807060+milosbackonja@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:37:53 +0100 Subject: [PATCH] feat: env vars support through values file (#811) Signed-off-by: Milos Backonja Signed-off-by: Shota Jolbordi --- infrastructure/charts/agent/templates/deployment.yaml | 4 ++++ infrastructure/charts/agent/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/infrastructure/charts/agent/templates/deployment.yaml b/infrastructure/charts/agent/templates/deployment.yaml index 85a2023818..f6a8888dc3 100644 --- a/infrastructure/charts/agent/templates/deployment.yaml +++ b/infrastructure/charts/agent/templates/deployment.yaml @@ -194,6 +194,10 @@ spec: key: root-token optional: false {{- end }} + {{- range $key, $value := .Values.env }} + - name: {{ $key }} + value: {{ $value | quote }} + {{- end }} {{- if .Values.server.keycloak.enabled }} - name: KEYCLOAK_ENABLED value: "true" diff --git a/infrastructure/charts/agent/values.yaml b/infrastructure/charts/agent/values.yaml index 582c0ebc3f..a32e7562f5 100644 --- a/infrastructure/charts/agent/values.yaml +++ b/infrastructure/charts/agent/values.yaml @@ -142,6 +142,9 @@ keycloak: mountPath: /opt/bitnami/keycloak/data/import readOnly: true +# Additional environment variables to be added to the server container +env: {} + # It is configured for deployment and postgresql objects of prism-agent affinity: nodeAffinity: {}