kubernetes: remove logging of changed object with cast

This commit is contained in:
Henning 2021-05-10 09:42:06 +02:00 committed by GitHub
parent 32e08f3510
commit de2437cfec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
package k8s
import (
"github.com/traefik/traefik/v2/pkg/log"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@ -54,7 +53,6 @@ func objChanged(oldObj, newObj interface{}) bool {
}
}
log.WithoutContext().Debugf("endpoint %s has no changes, ignoring", newObj.(*corev1.Endpoints).Name)
return false
}