Repository: traefik/traefik (language: go)

Issue:
Warning when ExternalName service loading is enabled
### 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?

Start traefik v3.0.0 with the option

```
--providers.kubernetescrd.allowExternalNameServices=true
```

I expected this to not have any effects besides allowing the use of ExternalName services.

### What did you see instead?

There is a log with level warning about ExternalName services being enabled.

```
2024-05-02T10:04:22Z WRN ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option) providerName=kubernetescrd
```

Since ExternalName service loading is enabled because I explicitly configured it, I expect this to not print a log message of level warning, at most the level should be `INFO` in my opinion.

I'd expect a warning level log message to tell me about something that is wrong, not about me having configured an option.

### What version of Traefik are you using?

v3.0.0

### What is your environment & configuration?

Using the helm chart in [v28.0.0](https://github.com/traefik/traefik-helm-chart/releases/tag/v28.0.0) with the following values:

```yaml
updateStrategy:
  rollingUpdate:
    maxUnavailable: 1

globalArguments: ~

providers:
  kubernetesCRD:
    allowExternalNameServices: true

additionalArguments:
  - --serverstransport.insecureskipverify
  - --certificatesresolvers.cloudflare.acme.dnschallenge.provider=cloudflare
  - --certificatesresolvers.cloudflare.acme.email=REDACTED_EMAIL
  - --certificatesresolvers.cloudflare.acme.storage=/data/acme.json
  - --metrics.prometheus=true
  - --providers.kubernetesingress.ingressclass=traefik
  - --providers.kubernetesingress.ingressendpoint.ip=REDACTED_IP
  
logs:
  general:
    level: WARN
  access:
    enabled: true

service:
  enabled: false

ports:
  web:
    hostPort: 80
    redirectTo:
      port: websecure
  websecure:
    hostPort: 443
    tls:
      enabled: true
      certResolver: cloudflare
      domains:
        - main: redacted.example.com
          sans:
            - "*.redacted.example.com"
  
ingressClass:
  enabled: true

env:
  - name: CLOUDFLARE_DNS_API_TOKEN
    valueFrom:
      secretKeyRef:
        name: cloudflare-token
        key: CLOUDFLARE_DNS_API_TOKEN

persistence:
  enabled: true
```


### If applicable, please paste the log output in DEBUG level

_No response_


Discussion / hints:
Hey @morremeyer,

Thanks for your suggestion, we think it makes sense.
Unfortunately, we are focused elsewhere. If you or another community member would like to build it, let us know.  

Don’t forget to check out the [contributor docs](https://github.com/traefik/contributors-guide/blob/master/pr_guidelines.md) and to link the PR to this issue.
Hi @nmengin,

I can contribute on it.
Marc

Fix patch:
diff --git a/pkg/provider/kubernetes/crd/kubernetes.go b/pkg/provider/kubernetes/crd/kubernetes.go
index 1559e44e97..aa559ccc5d 100644
--- a/pkg/provider/kubernetes/crd/kubernetes.go
+++ b/pkg/provider/kubernetes/crd/kubernetes.go
@@ -135,7 +135,7 @@ func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.
 	}
 
 	if p.AllowExternalNameServices {
-		logger.Warn().Msg("ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option)")
+		logger.Info().Msg("ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option)")
 	}
 
 	pool.GoCtx(func(ctxPool context.Context) {
diff --git a/pkg/provider/kubernetes/ingress/kubernetes.go b/pkg/provider/kubernetes/ingress/kubernetes.go
index 80a2cdeb31..cfb8de4a48 100644
--- a/pkg/provider/kubernetes/ingress/kubernetes.go
+++ b/pkg/provider/kubernetes/ingress/kubernetes.go
@@ -134,7 +134,7 @@ func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.
 	}
 
 	if p.AllowExternalNameServices {
-		logger.Warn().Msg("ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option)")
+		logger.Info().Msg("ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option)")
 	}
 
 	pool.GoCtx(func(ctxPool context.Context) {


Test patch: