ソースを参照

fix: fix helm install failed when enable ingress

Rory Z 3 年 前
コミット
c360486d87
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 }}