diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index 64b4bae..c9ad974 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 a2e1632..8c80cfe 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -141,6 +141,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