From 3b64d301eeeffc3a7be1ae33d5ca346a74d816c0 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Thu, 17 Jun 2021 17:55:49 +0800 Subject: [PATCH] Update chart to allow user to disable-profiler Longhorn#2696 Signed-off-by: Chin-Ya Huang --- chart/templates/daemonset-sa.yaml | 3 +++ chart/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index 636a4c0..5e09fa9 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -40,6 +40,9 @@ spec: - "{{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }}" - --service-account - longhorn-service-account + {{- if .Values.longhornManager.disableProfiler }} + - --disable-profiler + {{- end }} ports: - containerPort: 9500 name: manager diff --git a/chart/values.yaml b/chart/values.yaml index 986c3ad..e5ce497 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -124,6 +124,9 @@ longhornManager: # label-key1: "label-value1" # label-key2: "label-value2" + ## Set to true to disable profiler + disableProfiler: false + longhornDriver: priorityClass: ~ tolerations: []