1
0
mirror of https://github.com/containous/traefik.git synced 2025-03-19 18:50:12 +03:00

Delete an unnecessary warning log

This commit is contained in:
Jean-Baptiste Doumenjou 2020-03-25 14:32:04 +01:00 committed by GitHub
parent da8451c637
commit f624449ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ import (
"time"
"github.com/containous/traefik/v2/pkg/log"
"github.com/golang/protobuf/proto"
corev1 "k8s.io/api/core/v1"
extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
networkingv1beta1 "k8s.io/api/networking/v1beta1"
@ -187,9 +188,7 @@ func (c *clientWrapper) GetIngresses() []*networkingv1beta1.Ingress {
return results
}
func extensionsToNetworking(ing *extensionsv1beta1.Ingress) (*networkingv1beta1.Ingress, error) {
log.Warnf("Ingress %s/%s: the apiVersion 'extensions/v1beta1' is deprecated, use 'networking.k8s.io/v1beta1' instead.", ing.Namespace, ing.Name)
func extensionsToNetworking(ing proto.Marshaler) (*networkingv1beta1.Ingress, error) {
data, err := ing.Marshal()
if err != nil {
return nil, err