From 947b55a6b2776a18d7cc1974476a95c4f5276dbc Mon Sep 17 00:00:00 2001 From: Andrew Rothstein Date: Wed, 16 Oct 2024 15:25:29 -0400 Subject: [PATCH] add support for custom environment variables to the server deployment (#291) * add support for custom environment variables to the server deployment * Update kiali-server/values.yaml --------- Co-authored-by: John Mazzitelli --- kiali-server/templates/deployment.yaml | 4 ++++ kiali-server/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/kiali-server/templates/deployment.yaml b/kiali-server/templates/deployment.yaml index 270aa7b..c4bd243 100644 --- a/kiali-server/templates/deployment.yaml +++ b/kiali-server/templates/deployment.yaml @@ -125,6 +125,10 @@ spec: value: "{{ .Values.deployment.logger.time_field_format }}" - name: LOG_SAMPLER_RATE value: "{{ .Values.deployment.logger.sampler_rate }}" + {{- range .Values.deployment.custom_envs }} + - name: {{ .name | quote }} + value: {{ .value | quote }} + {{- end }} volumeMounts: - name: {{ include "kiali-server.fullname" . }}-configuration mountPath: "/kiali-configuration" diff --git a/kiali-server/values.yaml b/kiali-server/values.yaml index f4561d6..c6cfd1c 100644 --- a/kiali-server/values.yaml +++ b/kiali-server/values.yaml @@ -39,6 +39,7 @@ deployment: # For more control over what the Kial Service Account can see, use the Kiali Operator. cluster_wide_access: true configmap_annotations: {} + custom_envs: [] custom_secrets: [] dns: config: {}