You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by as...@apache.org on 2024/01/18 06:24:40 UTC
(apisix-helm-chart) branch master updated: fix: allow configuring apiVersion in Ingress Class resource (#698)
This is an automated email from the ASF dual-hosted git repository.
ashishtiwari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new 24eee91 fix: allow configuring apiVersion in Ingress Class resource (#698)
24eee91 is described below
commit 24eee91ecd7e4b26c0b3018b1f7c4ff91b53d628
Author: Ashish Tiwari <as...@gmail.com>
AuthorDate: Thu Jan 18 11:54:35 2024 +0530
fix: allow configuring apiVersion in Ingress Class resource (#698)
* fix: allow configuring apiVersion in Ingress Class resource
---------
Signed-off-by: Ashish Tiwari <as...@gmail.com>
---
charts/apisix-ingress-controller/templates/ingress-class.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/charts/apisix-ingress-controller/templates/ingress-class.yaml b/charts/apisix-ingress-controller/templates/ingress-class.yaml
index 0120614..0099b3a 100644
--- a/charts/apisix-ingress-controller/templates/ingress-class.yaml
+++ b/charts/apisix-ingress-controller/templates/ingress-class.yaml
@@ -1,4 +1,10 @@
+{{ if or (eq .Values.config.kubernetes.ingressVersion "") (eq .Values.config.kubernetes.ingressVersion "networking/v1")}}
apiVersion: networking.k8s.io/v1
+{{- else if (eq .Values.config.kubernetes.ingressVersion "networking/v1beta1")}}
+apiVersion: networking.k8s.io/v1beta1
+{{- else }}
+apiVersion: {{ .Values.config.kubernetes.ingressVersion }}
+{{- end }}
kind: IngressClass
metadata:
name: {{ .Values.config.kubernetes.ingressClass | quote }}