From f4cd9da0f088530f7259a8b236bc6b42c4e60b40 Mon Sep 17 00:00:00 2001 From: Derek Gaffney <17263955+gaffneyd4@users.noreply.github.com> Date: Thu, 30 Mar 2023 07:47:33 -0400 Subject: [PATCH] Allow configuration of pathType in Ingress resource --- charts/longhorn/templates/ingress.yaml | 2 +- charts/longhorn/values.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/longhorn/templates/ingress.yaml b/charts/longhorn/templates/ingress.yaml index ee47f8b8..402c624e 100644 --- a/charts/longhorn/templates/ingress.yaml +++ b/charts/longhorn/templates/ingress.yaml @@ -27,7 +27,7 @@ spec: paths: - path: {{ default "" .Values.ingress.path }} {{- if (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} - pathType: ImplementationSpecific + pathType: {{ .Values.ingress.pathType }} {{- end }} backend: {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} diff --git a/charts/longhorn/values.yaml b/charts/longhorn/values.yaml index 55805f8b..cc0eaf7f 100644 --- a/charts/longhorn/values.yaml +++ b/charts/longhorn/values.yaml @@ -291,6 +291,11 @@ ingress: ## then you can access the UI by using the following full path {{host}}+{{path}} path: / + ## The pathType configures how the Ingress Controller implementation interprets the path + ## There are three supported path types, please see + ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types + pathType: ImplementationSpecific + ## Ingress annotations done as key:value pairs ## If you're using kube-lego, you will want to add: ## kubernetes.io/tls-acme: true