ingress:
  enabled: ${tobool(admin)}
  tls: ${tobool(tls)}
  ingressClassName: ${ingressClass}
  hostname: ${service_uri}
  annotations:
    kubernetes.io/ingress.class: ${ingressClass}
    %{ if tls }cert-manager.io/cluster-issuer: letsencrypt%{ endif }
    %{ if ingressClass == "traefik" && tls }
    traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
    traefik.ingress.kubernetes.io/router.middlewares: default-redirect-to-https@kubernetescrd,default-preserve-host-headers@kubernetescrd
    %{ else }
    %{ if ingressClass == "traefik" }
    traefik.ingress.kubernetes.io/router.entrypoints: web
    traefik.ingress.kubernetes.io/router.middlewares: default-preserve-host-headers@kubernetescrd
    %{ endif }
    %{ endif }
