Merge pull request #8147 from Rory-Z/master

fix: fix helm install failed when enable ingress
This commit is contained in:
Zaiming (Stone) Shi 2022-06-09 13:54:51 +01:00 committed by GitHub
commit 174ea5291a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ spec:
- host: {{ $host }}
http:
paths:
- path: /
- path: {{ $.Values.ingress.dashboard.path | default "/" }}
{{- if (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .Values.ingress.dashboard.pathType | default "ImplementationSpecific" }}
pathType: {{ $.Values.ingress.dashboard.pathType | default "ImplementationSpecific" }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}