From dac021854f3da8ad0d663bfd8d4edf59eaaf37fb Mon Sep 17 00:00:00 2001 From: bakito Date: Fri, 12 Jan 2024 15:25:46 +0100 Subject: [PATCH] allow configuration of manager debug level Signed-off-by: bakito --- charts/longhorn/templates/daemonset-sa.yaml | 2 ++ charts/longhorn/values.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/longhorn/templates/daemonset-sa.yaml b/charts/longhorn/templates/daemonset-sa.yaml index 63f98cd1..820dc637 100644 --- a/charts/longhorn/templates/daemonset-sa.yaml +++ b/charts/longhorn/templates/daemonset-sa.yaml @@ -30,7 +30,9 @@ spec: privileged: true command: - longhorn-manager + {{- if .Values.longhornManager.log.debug }} - -d + {{- end }} {{- if eq .Values.longhornManager.log.format "json" }} - -j {{- end }} diff --git a/charts/longhorn/values.yaml b/charts/longhorn/values.yaml index 55805f8b..f6a76523 100644 --- a/charts/longhorn/values.yaml +++ b/charts/longhorn/values.yaml @@ -170,6 +170,8 @@ longhornManager: log: ## Allowed values are `plain` or `json`. format: plain + ## Enable debug log level + debug: true priorityClass: ~ tolerations: [] ## If you want to set tolerations for Longhorn Manager DaemonSet, delete the `[]` in the line above