From 9bcfb143a2dd8a2906db1d18046551b1ed658fc0 Mon Sep 17 00:00:00 2001 From: William Phetsinorath Date: Tue, 14 May 2024 21:51:49 +0200 Subject: [PATCH] Allow disabling Longhorn UI This pull request introduces the ability to disable the deployment of the Longhorn UI during installation. This caters to users in constrained environments where direct interaction with the Kubernetes API is preferred for managing Longhorn volumes. Signed-off-by: William Phetsinorath --- charts/longhorn/templates/deployment-ui.yaml | 2 ++ charts/longhorn/values.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/longhorn/templates/deployment-ui.yaml b/charts/longhorn/templates/deployment-ui.yaml index 0ee86c79..4392a1c8 100644 --- a/charts/longhorn/templates/deployment-ui.yaml +++ b/charts/longhorn/templates/deployment-ui.yaml @@ -1,3 +1,4 @@ +{{- if .Values.longhornUI.enabled }} {{- if .Values.openshift.enabled }} {{- if .Values.openshift.ui.route }} # https://github.com/openshift/oauth-proxy/blob/master/contrib/sidecar.yaml @@ -180,3 +181,4 @@ spec: {{- else }} nodePort: null {{- end }} +{{- end }} diff --git a/charts/longhorn/values.yaml b/charts/longhorn/values.yaml index af356cf0..65d94df2 100644 --- a/charts/longhorn/values.yaml +++ b/charts/longhorn/values.yaml @@ -380,6 +380,8 @@ longhornDriver: # label-key2: "label-value2" longhornUI: + # -- Setting that allows you to enable the Longhorn UI. + enabled: true # -- Replica count for Longhorn UI. replicas: 2 # -- PriorityClass for Longhorn UI.