diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index 25c435e..94772af 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -31,6 +31,9 @@ spec: command: - longhorn-manager - -d + {{- if eq .Values.longhornManager.log.format "json" }} + - -j + {{- end }} - daemon - --engine-image - "{{ template "registry_url" . }}{{ .Values.image.longhorn.engine.repository }}:{{ .Values.image.longhorn.engine.tag }}" diff --git a/chart/values.yaml b/chart/values.yaml index 8a10409..cb3644e 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -125,6 +125,9 @@ privateRegistry: registrySecret: ~ longhornManager: + log: + ## Allowed values are `plain` or `json`. + format: plain priorityClass: ~ tolerations: [] ## If you want to set tolerations for Longhorn Manager DaemonSet, delete the `[]` in the line above