浏览代码

Merge pull request #8147 from Rory-Z/master

fix: fix helm install failed when enable ingress
Zaiming (Stone) Shi 3 年之前
父节点
当前提交
174ea5291a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      deploy/charts/emqx/templates/ingress.yaml

+ 2 - 2
deploy/charts/emqx/templates/ingress.yaml

@@ -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 }}