From c2dc91c61478c7aff6798a53ce0b512f23f67e03 Mon Sep 17 00:00:00 2001 From: Vladimir Kozhukalov Date: Mon, 5 Jan 2026 10:25:29 -0600 Subject: [PATCH] Do not check k8s version when creating IngressClass The Ingress API is stable since 1.19. There is no need to check if the K8s version is 1.18 since it is pretty old. The v1beta1 was removed in 1.22. Closes #100 --- haproxy-ingress/templates/controller-ingressclass.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/haproxy-ingress/templates/controller-ingressclass.yaml b/haproxy-ingress/templates/controller-ingressclass.yaml index 98a8081..73a8144 100644 --- a/haproxy-ingress/templates/controller-ingressclass.yaml +++ b/haproxy-ingress/templates/controller-ingressclass.yaml @@ -1,9 +1,5 @@ {{- if .Values.controller.ingressClassResource.enabled }} -{{- if semverCompare "=1.18-0" .Capabilities.KubeVersion.GitVersion }} -apiVersion: networking.k8s.io/v1beta1 -{{- else }} apiVersion: networking.k8s.io/v1 -{{- end }} kind: IngressClass metadata: labels: