Skip to content

Commit

Permalink
Allow configuration of pathType in Ingress resource
Browse files Browse the repository at this point in the history
  • Loading branch information
gaffneyd4 committed Mar 30, 2023
1 parent 728dfbc commit f4cd9da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/longhorn/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/longhorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4cd9da

Please sign in to comment.