Skip to content

Commit

Permalink
fix: allow configuring apiVersion in Ingress Class resource (#698)
Browse files Browse the repository at this point in the history
* fix: allow configuring apiVersion in Ingress Class resource



---------

Signed-off-by: Ashish Tiwari <[email protected]>
  • Loading branch information
Revolyssup authored Jan 18, 2024
1 parent f14f58d commit 24eee91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/apisix-ingress-controller/templates/ingress-class.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down

0 comments on commit 24eee91

Please sign in to comment.