Преглед изворни кода

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