Browse Source

fix missing pathType in ingress.yaml for kube cluster version 1.22+ (#1450)

* fix missing pathType in ingress.yaml kube cluster version 1.22+

* correct placing of pathType in ingress.yaml
Ruslan Ibragimov 3 years ago
parent
commit
86dad04448
1 changed files with 3 additions and 2 deletions
  1. 3 2
      charts/kafka-ui/templates/ingress.yaml

+ 3 - 2
charts/kafka-ui/templates/ingress.yaml

@@ -33,7 +33,7 @@ spec:
 {{- if semverCompare ">=1.22-0" .Capabilities.KubeVersion.GitVersion -}}
           {{- range .Values.ingress.precedingPaths }}
           - path: {{ .path }}
-            pathType: ImplementationSpecific
+            pathType: Prefix
             backend:
               service:
                 name: {{ .serviceName }}
@@ -45,12 +45,13 @@ spec:
                 name: {{ $fullName }}
                 port:
                   number: {{ $svcPort }}
+            pathType: Prefix
 {{- if .Values.ingress.path }}
             path: {{ .Values.ingress.path }}
 {{- end }}
           {{- range .Values.ingress.succeedingPaths }}
           - path: {{ .path }}
-            pathType: ImplementationSpecific
+            pathType: Prefix
             backend:
               service:
                 name: {{ .serviceName }}