Skip to content

Commit

Permalink
fix missing pathType in ingress.yaml for kube cluster version 1.22+ (#…
Browse files Browse the repository at this point in the history
…1450)

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

* correct placing of pathType in ingress.yaml
  • Loading branch information
5hin0bi committed Jan 23, 2022
1 parent 9446d9c commit 86dad04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/kafka-ui/templates/ingress.yaml
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 86dad04

Please sign in to comment.