Переглянути джерело

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