Fixes networking.k8s.io/v1 Ingress fields (#65)

Fixes ingress by using new {service: {name, port}} structure

Co-authored-by: Joel Gallant <joel@joelgallant.me>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/65
Reviewed-by: luhahn <luhahn@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-Authored-By: joelgallant <joelgallant@noreply.gitea.io>
Co-Committed-By: joelgallant <joelgallant@noreply.gitea.io>
This commit is contained in:
joelgallant 2020-11-25 23:28:53 +08:00 committed by techknowlogick
parent 76aee7b25b
commit a26b4e10d1

View File

@ -35,7 +35,14 @@ spec:
paths:
- path: /
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
service:
name: {{ $fullName }}-http
port:
number: {{ $httpPort }}
{{- else -}}
serviceName: {{ $fullName }}-http
servicePort: {{ $httpPort }}
{{- end }}
{{- end }}
{{- end }}