Logs show errors about ingressroutes

Hello,

I've updated traefik to v3.1.0, I disabled the k8s Ingress api, moved everything to Gateway api, and I have this kind of errors in logs.

E0719 09:07:27.711609 1 reflector.go:150] k8s.io/client-go@v0.30.0/tools/cache/reflector.go:232: Failed to watch *v1alpha1.IngressRoute: failed to list *v1alpha1.IngressRoute: ingressroutes.traefik.io is forbidden: User "system:serviceaccount:traefik:traefik-controller" cannot list resource "ingressroutes" in API group "traefik.io" at the cluster scope

I have this args in my yaml file :

args:
  - "--global.checknewversion"
  - "--entryPoints.traefik.address=:9000"
  - "--entryPoints.web.address=:8000"
  - "--entryPoints.websecure.address=:8443"
  - "--api.dashboard=true"
  - "--ping=true"
  - "--providers.kubernetescrd"
  - "--providers.kubernetesgateway"
  - "--entrypoints.websecure.http.tls"
  - "--providers.kubernetescrd.allowCrossNamespace=true"

Am I missing something in order to clean this messages in logs ?

Thanks

I had issue with the my ClusterRole file.

It's fixed.