rancher-partner-charts/charts/citrix/citrix-cpx-with-ingress-con.../templates/ingressclass.yaml

19 lines
466 B
YAML

{{- $default := .Values.setAsDefaultIngressClass -}}
{{- if semverCompare ">=1.19.0-0" .Capabilities.KubeVersion.GitVersion }}
{{- if .Values.ingressClass }}
{{- range .Values.ingressClass }}
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: {{ . | quote }}
{{- if $default }}
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
{{- end }}
spec:
controller: citrix.com/ingress-controller
---
{{- end }}
{{- end }}
{{- end }}