fix: fix helm install failed when enable ingress

This commit is contained in:
Rory Z 2022-06-07 14:49:17 +08:00
parent b3103a8701
commit c360486d87
1 changed files with 2 additions and 2 deletions

View File

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