Fixes access of Capabilities variable (#67)

Fixes access of Capabilities variable

Co-authored-by: Joel Gallant <joel@joelgallant.me>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/67
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: luhahn <luhahn@noreply.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-26 01:20:12 +08:00 committed by luhahn
parent 13e210c75f
commit 33ee018b52

View File

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