diff --git a/charts/element-web/templates/ingress.yaml b/charts/element-web/templates/ingress.yaml index be4311d..4b4f50a 100644 --- a/charts/element-web/templates/ingress.yaml +++ b/charts/element-web/templates/ingress.yaml @@ -1,9 +1,9 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "element-web.fullname" . -}} {{- $svcPort := .Values.service.port -}} -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} apiVersion: networking.k8s.io/v1 -{{- else -}} +{{- else }} apiVersion: networking.k8s.io/v1beta1 {{- end }} kind: Ingress @@ -32,11 +32,11 @@ spec: http: paths: - path: / -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} +{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} pathType: Prefix {{- end }} backend: -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} +{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} service: name: {{ $fullName }} port: