Merge pull request #111134 from ldsdsy/modify1

Improve the accuracy of output msg in pkg/controller/endpoint/endpoints_controller.go
This commit is contained in:
Kubernetes Prow Robot 2022-07-17 23:51:15 -07:00 committed by GitHub
commit 3987c8ad91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,7 +426,7 @@ func (e *Controller) syncService(ctx context.Context, key string) error {
if err != nil {
// this will happen, if the cluster runs with some nodes configured as dual stack and some as not
// such as the case of an upgrade..
klog.V(2).Infof("failed to find endpoint for service:%v with ClusterIP:%v on pod:%v with error:%v", service.Name, service.Spec.ClusterIP, pod.Name, err)
klog.V(2).Infof("Failed to find endpoint for service:%s with ClusterIP:%s on pod:%s with error:%v", service.Name, service.Spec.ClusterIP, klog.KObj(pod), err)
continue
}