{{- if .Values.ingressController.enabled -}}
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
  name: cilium
  {{- if .Values.ingressController.default }}
  annotations:
    ingressclass.kubernetes.io/is-default-class: "true"
  {{- end}}
spec:
  controller: cilium.io/ingress-controller
{{- end}}
