Repository: traefik/traefik (language: go)

Issue:
Invalid error log with v3.1.2
### Welcome!

- [X] Yes, I've searched similar issues on [GitHub](https://github.com/traefik/traefik/issues) and didn't find any.
- [X] Yes, I've searched similar issues on the [Traefik community forum](https://community.traefik.io) and didn't find any.

### What did you do?

I tried Traefik Helm Chart with Traefik Proxy v3.1.2
By default, it starts Traefik Proxy with Kubernetes Ingress provider enabled:
![image](https://github.com/user-attachments/assets/9bc14e95-a055-44a6-ae66-df38ec323759)


### What did you see instead?

It started but the first line of logs is unexpected:

```shell
{"level":"error","error":"kubernetesingress cannot be a standalone element (type *cli.ingress)","time":"2024-08-14T14:47:07Z","message":"deprecated static options analysis failed"}
```

It can be reproduced with docker, too:

```shell
$ docker run traefik:v3.1.2 --providers.kubernetesingress=true
{"level":"error","error":"kubernetesingress cannot be a standalone element (type *cli.ingress)","time":"2024-08-14T14:47:07Z","message":"deprecated static options analysis failed"}
```

### What version of Traefik are you using?

Version:      3.1.2
Codename:     comte
Go version:   go1.22.5
Built:        2024-08-06T13:37:51Z
OS/Arch:      linux/amd64

### What is your environment & configuration?

Local Kubernetes environment

### If applicable, please paste the log output in DEBUG level

_No response_


Discussion / hints:

Fix patch:
diff --git a/pkg/cli/deprecation.go b/pkg/cli/deprecation.go
index 0e7af5d05a..58d74cf795 100644
--- a/pkg/cli/deprecation.go
+++ b/pkg/cli/deprecation.go
@@ -214,7 +214,7 @@ type providers struct {
 	ETCD              *etcd          `json:"etcd,omitempty" toml:"etcd,omitempty" yaml:"etcd,omitempty" label:"allowEmpty" file:"allowEmpty"`
 	Redis             *redis         `json:"redis,omitempty" toml:"redis,omitempty" yaml:"redis,omitempty" label:"allowEmpty" file:"allowEmpty"`
 	HTTP              *http          `json:"http,omitempty" toml:"http,omitempty" yaml:"http,omitempty" label:"allowEmpty" file:"allowEmpty"`
-	KubernetesIngress *ingress       `json:"kubernetesIngress,omitempty" toml:"kubernetesIngress,omitempty" yaml:"kubernetesIngress,omitempty" file:"allowEmpty"`
+	KubernetesIngress *ingress       `json:"kubernetesIngress,omitempty" toml:"kubernetesIngress,omitempty" yaml:"kubernetesIngress,omitempty" label:"allowEmpty" file:"allowEmpty"`
 }
 
 func (p *providers) deprecationNotice(logger zerolog.Logger) bool {


Test patch: