diff --git a/charts/digital-product-pass/templates/ingress-frontend.yaml b/charts/digital-product-pass/templates/ingress-frontend.yaml index 0a48d193a..7af65b90d 100644 --- a/charts/digital-product-pass/templates/ingress-frontend.yaml +++ b/charts/digital-product-pass/templates/ingress-frontend.yaml @@ -35,15 +35,14 @@ {{- end }} {{- end }} -#{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} -#apiVersion: networking.k8s.io/v1 -#{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -#apiVersion: networking.k8s.io/v1beta1 -#{{- else -}} -#apiVersion: extensions/v1beta1 -#{{- end }} - +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} + kind: Ingress metadata: name: {{ $fullName }}