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
This commit is contained in:
Ruslan Ibragimov 2022-01-23 16:56:38 +03:00 committed by GitHub
parent 9446d9c39d
commit 86dad04448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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