At the moment, it's not possible to pass user-defined/custom annotations to the `IngressClass` resource template. As can be seen [here](https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/templates/controller-ingressclass.yaml#L12-L15),  the current template will only add an `annotations` stanza if the ingressClass is marked as default.

Our use case for the above is to be able to add ArgoCD related annotations, e.g. `argocd.argoproj.io/sync-options: Prune=false` to prevent resource pruning.

Allow for passing user defined annotations to the IngressClass resource template
This is a GitHub Issue
repo:ingress-nginx
owner:kubernetes
Title : Allow for passing user defined annotations to the IngressClass resource template
Issue date:

--- start body ---
At the moment, it's not possible to pass user-defined/custom annotations to the `IngressClass` resource template. As can be seen [here](https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/templates/controller-ingressclass.yaml#L12-L15),  the current template will only add an `annotations` stanza if the ingressClass is marked as default.

Our use case for the above is to be able to add ArgoCD related annotations, e.g. `argocd.argoproj.io/sync-options: Prune=false` to prevent resource pruning.

--- end body ---
