You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/11/03 09:18:08 UTC
[incubator-devlake-helm-chart] branch main updated: feat(helm): Support setting log level in helm chart (#51)
This is an automated email from the ASF dual-hosted git repository.
warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-helm-chart.git
The following commit(s) were added to refs/heads/main by this push:
new 56cf4e8 feat(helm): Support setting log level in helm chart (#51)
56cf4e8 is described below
commit 56cf4e80acaa9d0636a49db194d630bd562cd050
Author: Liu Shaohui <ls...@gmail.com>
AuthorDate: Thu Nov 3 17:18:03 2022 +0800
feat(helm): Support setting log level in helm chart (#51)
Support setting log level in helm chart to enable debug log for debugging some issues
---
charts/devlake/README.md | 2 ++
charts/devlake/templates/configmaps.yaml | 1 +
charts/devlake/templates/statefulsets.yaml | 3 +++
charts/devlake/values.yaml | 2 ++
4 files changed, 8 insertions(+)
diff --git a/charts/devlake/README.md b/charts/devlake/README.md
index a5d420e..9f87f6f 100644
--- a/charts/devlake/README.md
+++ b/charts/devlake/README.md
@@ -108,6 +108,8 @@ Some useful parameters for the chart, you could also check them in values.yaml
| lake.image.repository | repository for lake's image | mericodev/lake |
| lake.image.tag | image tag for lake's image | latest |
| lake.image.pullPolicy | pullPolicy for lake's image | Always |
+| lake.loggingDir | log dir for the lake server | /app/logs |
+| lake.loggingLevel | log level for the lake server | info |
| 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 |
diff --git a/charts/devlake/templates/configmaps.yaml b/charts/devlake/templates/configmaps.yaml
index ff79fde..3161099 100644
--- a/charts/devlake/templates/configmaps.yaml
+++ b/charts/devlake/templates/configmaps.yaml
@@ -31,6 +31,7 @@ data:
POSTGRES_DB: "{{ .Values.pgsql.database }}"
{{- end }}
LOGGING_DIR: "{{ .Values.lake.loggingDir }}"
+ LOGGING_LEVEL: "{{ .Values.lake.loggingLevel }}"
{{- if .Values.ui.basicAuth.enabled }}
ADMIN_USER: "{{ .Values.ui.basicAuth.user }}"
ADMIN_PASS: "{{ .Values.ui.basicAuth.password }}"
diff --git a/charts/devlake/templates/statefulsets.yaml b/charts/devlake/templates/statefulsets.yaml
index be5ad05..2e89798 100644
--- a/charts/devlake/templates/statefulsets.yaml
+++ b/charts/devlake/templates/statefulsets.yaml
@@ -217,6 +217,9 @@ spec:
labels:
{{- include "devlake.selectorLabels" . | nindent 8 }}
devlakeComponent: lake
+ annotations:
+ # Force reload on config changes
+ checksum/devlake-config: {{ include (print $.Template.BasePath "/configmaps.yaml") . | sha256sum }}
spec:
initContainers:
{{- include "common.initContainerWaitDatabase" . | nindent 8 }}
diff --git a/charts/devlake/values.yaml b/charts/devlake/values.yaml
index dc69c7e..e4906ae 100644
--- a/charts/devlake/values.yaml
+++ b/charts/devlake/values.yaml
@@ -145,6 +145,8 @@ lake:
affinity: {}
loggingDir: "/app/logs"
+ # debug, info, warn, error
+ loggingLevel: "info"
ui:
image: