You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/03/26 03:22:10 UTC

[skywalking-kubernetes] branch master updated: Allow setting env for UI deployment (#116)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c143d7  Allow setting env for UI deployment (#116)
8c143d7 is described below

commit 8c143d7203ef3ed0e067646390609d0db06a2cc9
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Sun Mar 26 11:22:04 2023 +0800

    Allow setting env for UI deployment (#116)
---
 chart/skywalking/templates/ui-deployment.yaml | 4 ++++
 chart/skywalking/values.yaml                  | 1 +
 2 files changed, 5 insertions(+)

diff --git a/chart/skywalking/templates/ui-deployment.yaml b/chart/skywalking/templates/ui-deployment.yaml
index 9746107..6495d23 100644
--- a/chart/skywalking/templates/ui-deployment.yaml
+++ b/chart/skywalking/templates/ui-deployment.yaml
@@ -77,3 +77,7 @@ spec:
         env:
         - name: SW_OAP_ADDRESS
           value: "http://{{ template "skywalking.oap.fullname" . }}:{{ .Values.oap.ports.rest }}"
+        {{- range $key, $value :=  .Values.ui.env }}
+        - name: {{ $key }}
+          value: {{ $value | quote }}
+        {{- end }}
diff --git a/chart/skywalking/values.yaml b/chart/skywalking/values.yaml
index eaa54d3..5cf3992 100644
--- a/chart/skywalking/values.yaml
+++ b/chart/skywalking/values.yaml
@@ -170,6 +170,7 @@ ui:
     # runAsUser: 1000
     # runAsGroup: 1000
     # fsGroup: 1000
+  env:
 
 oapInit:
   nodeAffinity: {}