@@ -58,7 +58,7 @@ type RBStatusController struct {
58
58
// The Controller will requeue the Request to be processed again if an error is non-nil or
59
59
// Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
60
60
func (c * RBStatusController ) Reconcile (ctx context.Context , req controllerruntime.Request ) (controllerruntime.Result , error ) {
61
- klog .V (4 ).Infof ("Reconciling ResourceBinding %s." , req .NamespacedName . String () )
61
+ klog .V (4 ).InfoS ("Reconciling ResourceBinding" , "namespace" , req . Namespace , "name" , req .Name )
62
62
63
63
binding := & workv1alpha2.ResourceBinding {}
64
64
if err := c .Client .Get (ctx , req .NamespacedName , binding ); err != nil {
@@ -114,8 +114,7 @@ func (c *RBStatusController) SetupWithManager(mgr controllerruntime.Manager) err
114
114
func (c * RBStatusController ) syncBindingStatus (ctx context.Context , binding * workv1alpha2.ResourceBinding ) error {
115
115
err := helper .AggregateResourceBindingWorkStatus (ctx , c .Client , binding , c .EventRecorder )
116
116
if err != nil {
117
- klog .Errorf ("Failed to aggregate workStatus to resourceBinding(%s/%s), Error: %v" ,
118
- binding .Namespace , binding .Name , err )
117
+ klog .ErrorS (err , "Failed to aggregate workStatues to ResourceBinding" , "namespace" , binding .Namespace , "name" , binding .Name )
119
118
return err
120
119
}
121
120
0 commit comments