Final fix for ingress K8s version comparisons
This commit is contained in:
parent
f163ecafa8
commit
76d0cc3fab
1 changed files with 8 additions and 8 deletions
|
@ -59,11 +59,11 @@ spec:
|
||||||
{{- range $config.csPaths }}
|
{{- range $config.csPaths }}
|
||||||
{{- if $.Values.ingress.traefikPaths }}
|
{{- if $.Values.ingress.traefikPaths }}
|
||||||
- path: {{ printf "/{path:%s}" (trimPrefix "/" .) | quote }}
|
- path: {{ printf "/{path:%s}" (trimPrefix "/" .) | quote }}
|
||||||
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
{{- end }}
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
name: {{ $service }}
|
name: {{ $service }}
|
||||||
port:
|
port:
|
||||||
|
@ -74,11 +74,11 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- path: {{ . | quote }}
|
- path: {{ . | quote }}
|
||||||
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
{{- end }}
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
name: {{ $service }}
|
name: {{ $service }}
|
||||||
port:
|
port:
|
||||||
|
@ -94,11 +94,11 @@ spec:
|
||||||
{{- range $config.paths }}
|
{{- range $config.paths }}
|
||||||
{{- if $.Values.ingress.traefikPaths }}
|
{{- if $.Values.ingress.traefikPaths }}
|
||||||
- path: {{ printf "/{path:%s}" (trimPrefix "/" .) | quote }}
|
- path: {{ printf "/{path:%s}" (trimPrefix "/" .) | quote }}
|
||||||
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
{{- end }}
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
name: {{ $service }}
|
name: {{ $service }}
|
||||||
port:
|
port:
|
||||||
|
@ -109,11 +109,11 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- path: {{ . | quote }}
|
- path: {{ . | quote }}
|
||||||
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
{{- end }}
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
name: {{ $service }}
|
name: {{ $service }}
|
||||||
port:
|
port:
|
||||||
|
|
Loading…
Reference in a new issue