From 30590a4160e330dd5fee379ecdc7abcb50ac9059 Mon Sep 17 00:00:00 2001 From: songxiao-wang87 Date: Mon, 26 Apr 2021 09:31:24 +0800 Subject: [PATCH] Making a run test. Signed-off-by: songxiao-wang87 --- pkg/controller/endpointslicemirroring/utils.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/controller/endpointslicemirroring/utils.go b/pkg/controller/endpointslicemirroring/utils.go index 9910b314758..30e7038de57 100644 --- a/pkg/controller/endpointslicemirroring/utils.go +++ b/pkg/controller/endpointslicemirroring/utils.go @@ -161,12 +161,12 @@ func getServiceFromDeleteAction(obj interface{}) *corev1.Service { // is unrecorded. tombstone, ok := obj.(cache.DeletedFinalStateUnknown) if !ok { - utilruntime.HandleError(fmt.Errorf("Couldn't get object from tombstone %#v", obj)) + utilruntime.HandleError(fmt.Errorf("couldn't get object from tombstone %#v", obj)) return nil } service, ok := tombstone.Obj.(*corev1.Service) if !ok { - utilruntime.HandleError(fmt.Errorf("Tombstone contained object that is not a Service resource: %#v", obj)) + utilruntime.HandleError(fmt.Errorf("tombstone contained object that is not a Service resource: %#v", obj)) return nil } return service @@ -182,12 +182,12 @@ func getEndpointsFromDeleteAction(obj interface{}) *corev1.Endpoints { // final state is unrecorded. tombstone, ok := obj.(cache.DeletedFinalStateUnknown) if !ok { - utilruntime.HandleError(fmt.Errorf("Couldn't get object from tombstone %#v", obj)) + utilruntime.HandleError(fmt.Errorf("couldn't get object from tombstone %#v", obj)) return nil } endpoints, ok := tombstone.Obj.(*corev1.Endpoints) if !ok { - utilruntime.HandleError(fmt.Errorf("Tombstone contained object that is not an Endpoints resource: %#v", obj)) + utilruntime.HandleError(fmt.Errorf("tombstone contained object that is not an Endpoints resource: %#v", obj)) return nil } return endpoints @@ -202,12 +202,12 @@ func getEndpointSliceFromDeleteAction(obj interface{}) *discovery.EndpointSlice // state is unrecorded. tombstone, ok := obj.(cache.DeletedFinalStateUnknown) if !ok { - utilruntime.HandleError(fmt.Errorf("Couldn't get object from tombstone %#v", obj)) + utilruntime.HandleError(fmt.Errorf("couldn't get object from tombstone %#v", obj)) return nil } endpointSlice, ok := tombstone.Obj.(*discovery.EndpointSlice) if !ok { - utilruntime.HandleError(fmt.Errorf("Tombstone contained object that is not an EndpointSlice resource: %#v", obj)) + utilruntime.HandleError(fmt.Errorf("tombstone contained object that is not an EndpointSlice resource: %#v", obj)) return nil } return endpointSlice