mirror of
https://github.com/truecharts/charts.git
synced 2026-07-15 12:11:23 -03:00
Update _ingressclass.tpl
This commit is contained in:
committed by
GitHub
parent
0ebfe5244e
commit
de4f3d66f9
@@ -1,6 +1,7 @@
|
||||
{{/* Define the ingressClass */}}
|
||||
{{- define "traefik.ingressClass" -}}
|
||||
{{- if .Values.ingressClass.enabled }}
|
||||
---
|
||||
{{ if .Values.ingressClass.enabled }}
|
||||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/IngressClass" }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/IngressClass" }}
|
||||
@@ -10,7 +11,6 @@ apiVersion: {{ printf "networking.k8s.io/%s" .Values.ingressClass.fallbackApiVer
|
||||
{{- else }}
|
||||
{{- fail "\n\n ERROR: You must have at least networking.k8s.io/v1beta1 to use ingressClass" }}
|
||||
{{- end }}
|
||||
---
|
||||
kind: IngressClass
|
||||
metadata:
|
||||
annotations:
|
||||
|
||||
Reference in New Issue
Block a user