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

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 099d81d3 feat: 🎸 Support BasicAuth configs in devlake helm charts 
(#2987)
099d81d3 is described below

commit 099d81d39e6987143d11b1b9512868432a97a8b4
Author: Liu Shaohui <[email protected]>
AuthorDate: Thu Sep 8 21:07:55 2022 +0800

    feat: 🎸 Support BasicAuth configs in devlake helm charts (#2987)
    
    Add configs: ui.basicAuth.enabled/user/password to enable BasicAuth of 
config ui in helm charts
---
 deployment/helm/README.md                 | 3 +++
 deployment/helm/templates/configmaps.yaml | 5 ++++-
 deployment/helm/values.yaml               | 4 ++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/deployment/helm/README.md b/deployment/helm/README.md
index b40c9b4d..81c89787 100644
--- a/deployment/helm/README.md
+++ b/deployment/helm/README.md
@@ -97,6 +97,9 @@ Some useful parameters for the chart, you could also check 
them in values.yaml
 | ui.image.repository  | repository for ui's image | mericodev/config-ui  |
 | ui.image.tag  | image tag for ui's image | latest  |
 | ui.image.pullPolicy  | pullPolicy for ui's image | Always  |
+| ui.basicAuth.enabled  | If the basic auth in ui is enabled | false  |
+| ui.basicAuth.user  | The user name for the basic auth | "admin"  |
+| ui.basicAuth.password  | The password for the basic auth | "admin"  |
 | service.type  | Service type for exposed service | NodePort  |
 | service.uiPort  | Service port for config ui | 32001  |
 | service.ingress.enabled  | If enable ingress  |  false  |
diff --git a/deployment/helm/templates/configmaps.yaml 
b/deployment/helm/templates/configmaps.yaml
index a445dc75..5cb6ccc4 100644
--- a/deployment/helm/templates/configmaps.yaml
+++ b/deployment/helm/templates/configmaps.yaml
@@ -25,4 +25,7 @@ data:
   MYSQL_DATABASE: "{{ .Values.mysql.database }}"
   MYSQL_ROOT_PASSWORD: "{{ .Values.mysql.rootPassword }}"
   LOGGING_DIR: "{{ .Values.lake.loggingDir }}"
-
+{{- if .Values.ui.basicAuth.enabled }}
+  ADMIN_USER: "{{ .Values.ui.basicAuth.user }}"
+  ADMIN_PASS: "{{ .Values.ui.basicAuth.password }}"
+{{- end }}
diff --git a/deployment/helm/values.yaml b/deployment/helm/values.yaml
index 9cc77f5a..afc29bfa 100644
--- a/deployment/helm/values.yaml
+++ b/deployment/helm/values.yaml
@@ -118,6 +118,10 @@ ui:
 
   affinity: {}
 
+  basicAuth:
+    enabled: false
+    user: admin
+    password: admin
 
 # alpine image for some init containers
 alpine:

Reply via email to