It's not possible to template `ingressClassName` field there, so only the annotation option is possible, which is [deprecated](https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation) since 1.22.
It's not possible to template
ingressClassNamefield there, so only the annotation option is possible, which is deprecated since 1.22.