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:
parent
9446d9c39d
commit
86dad04448
1 changed files with 3 additions and 2 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue