fix: fix helm install failed when enable ingress

This commit is contained in:
Rory Z 2022-06-07 14:45:03 +08:00
parent b305c90b9c
commit 6ad1a92db0
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ spec:
paths:
- path: /
{{- 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 }}

View File

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

View File

@ -34,7 +34,7 @@ spec:
paths:
- path: {{ $.Values.ingress.wss.path | default "/mqtt" }}
{{- if (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .Values.ingress.wss.pathType | default "ImplementationSpecific" }}
pathType: {{ $.Values.ingress.wss.pathType | default "ImplementationSpecific" }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}