@@ -28,7 +28,6 @@ import (
28
28
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
29
29
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
30
30
"k8s.io/apimachinery/pkg/labels"
31
- utilruntime "k8s.io/apimachinery/pkg/util/runtime"
32
31
corev1informers "k8s.io/client-go/informers/core/v1"
33
32
kubeclient "k8s.io/client-go/kubernetes"
34
33
"k8s.io/client-go/tools/cache"
@@ -282,7 +281,7 @@ func (c *Controller) reconcile(ctx context.Context, qualifiedName common.Qualifi
282
281
string (adoption .ConflictResolutionAdopt ),
283
282
)
284
283
if err != nil {
285
- utilruntime . HandleError (err )
284
+ keyedLogger . Error (err , "Failed to ensure annotation" )
286
285
return worker .StatusError
287
286
}
288
287
needsUpdate = needsUpdate || isDirty
@@ -294,7 +293,7 @@ func (c *Controller) reconcile(ctx context.Context, qualifiedName common.Qualifi
294
293
string (orphaning .OrphanManagedResourcesAdopted ),
295
294
)
296
295
if err != nil {
297
- utilruntime . HandleError (err )
296
+ keyedLogger . Error (err , "Failed to ensure annotation" )
298
297
return worker .StatusError
299
298
}
300
299
needsUpdate = needsUpdate || isDirty
@@ -307,7 +306,7 @@ func (c *Controller) reconcile(ctx context.Context, qualifiedName common.Qualifi
307
306
typeConfig .GetControllers (),
308
307
)
309
308
if err != nil {
310
- utilruntime . HandleError (err )
309
+ keyedLogger . Error (err , "Failed to update pending controllers" )
311
310
return worker .StatusError
312
311
}
313
312
needsUpdate = needsUpdate || isDirty
0 commit comments