Fix template rendering issues

This commit is contained in:
Alexander Olofsson 2021-09-03 09:58:36 +02:00
parent 8097280ab0
commit 70184f417f
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
6 changed files with 69 additions and 69 deletions

View file

@ -32,17 +32,17 @@ spec:
http:
paths:
- path: /
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: {{ $svcPort }}
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end -}}
{{- end }}
{{- end }}
{{- end }}

View file

@ -34,16 +34,16 @@ spec:
http:
paths:
- path: /
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: http
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: http
{{- end -}}
{{- end }}
{{- end }}

View file

@ -33,18 +33,18 @@ spec:
paths:
{{- range .paths }}
- path: {{ . }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: ImplementationSpecific
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: {{ $svcPort }}
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end -}}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View file

@ -59,32 +59,32 @@ spec:
{{- range $config.csPaths }}
{{- if $.Values.ingress.traefikPaths }}
- path: {{ printf "/{path:%s}" (trimPrefix "/" .) | quote }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: ImplementationSpecific
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $service }}
port: 8083
{{- else -}}
{{- else }}
serviceName: {{ $service }}
servicePort: 8083
{{- end -}}
{{- end }}
{{- else }}
- path: {{ . | quote }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: ImplementationSpecific
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $service }}
port: 8083
{{- else -}}
{{- else }}
serviceName: {{ $service }}
servicePort: 8083
{{- end -}}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
@ -92,32 +92,32 @@ spec:
{{- range $config.paths }}
{{- if $.Values.ingress.traefikPaths }}
- path: {{ printf "/{path:%s}" (trimPrefix "/" .) | quote }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: ImplementationSpecific
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $service }}
port: 8083
{{- else -}}
{{- else }}
serviceName: {{ $service }}
servicePort: 8083
{{- end -}}
{{- end }}
{{- else }}
- path: {{ . | quote }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: ImplementationSpecific
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $service }}
port: 8083
{{- else -}}
{{- else }}
serviceName: {{ $service }}
servicePort: 8083
{{- end -}}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
@ -137,78 +137,78 @@ spec:
{{- if or (has . $csHosts) (has . $s2sHosts) }}
- path: /_matrix
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: 8008
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: 8008
{{- end -}}
{{- end }}
{{- end }}
{{- if and (has . $csHosts) $.Values.ingress.includeUnderscoreSynapse }}
- path: /_synapse
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: 8008
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: 8008
{{- end -}}
{{- end }}
{{- end }}
{{- if has . $wkHosts }}
{{- if $.Values.wellknown.enabled }}
- path: /.well-known/matrix/client
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
pathType: Exact
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $wkName }}
port: 80
{{- else -}}
serviceName: {{ $wkName }}
servicePort: 80
{{- end -}}
{{- end }}
- path: /.well-known/matrix/server
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Exact
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $wkName }}
port: 80
{{- else -}}
{{- else }}
serviceName: {{ $wkName }}
servicePort: 80
{{- end -}}
{{- end }}
{{- else }}
- path: /.well-known/matrix/client
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
pathType: Exact
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: 8008
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: 8008
{{- end -}}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View file

@ -36,17 +36,17 @@ spec:
http:
paths:
- path: /
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: http
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: http
{{- end -}}
{{- end }}
{{- end }}
{{- end }}

View file

@ -30,16 +30,16 @@ spec:
http:
paths:
- path: /
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
{{- end -}}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port: http
{{- else -}}
{{- else }}
serviceName: {{ $fullName }}
servicePort: http
{{- end -}}
{{- end }}
{{- end }}