@@ -197,7 +197,7 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r
197
197
return reconcile.Result {}, nil
198
198
}
199
199
200
- log .WithError (err ).Error ("unexpected error removing node label" )
200
+ log .WithError (err ).Error ("removing node label" )
201
201
return reconcile.Result {RequeueAfter : time .Second * 10 }, err
202
202
}
203
203
@@ -228,6 +228,7 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r
228
228
if component == registryFacade {
229
229
err = checkRegistryFacade (ipAddress , port )
230
230
if err != nil {
231
+ log .WithError (err ).Error ("checking registry-facade: %v" , err )
231
232
return reconcile.Result {RequeueAfter : time .Second * 10 }, nil
232
233
}
233
234
}
@@ -236,7 +237,7 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r
236
237
237
238
err = updateLabel (labelToUpdate , true , nodeName , r )
238
239
if err != nil {
239
- return reconcile.Result {}, fmt .Errorf ("Unexpected error while trying to add the label: %v" , err )
240
+ return reconcile.Result {}, fmt .Errorf ("trying to add the label: %v" , err )
240
241
}
241
242
242
243
readyIn := time .Since (pod .Status .StartTime .Time )
@@ -319,7 +320,7 @@ func checkRegistryFacade(host, port string) error {
319
320
dummyURL := fmt .Sprintf ("https://%v:%v/v2/remote/not-a-valid-image/manifests/latest" , host , port )
320
321
req , err := http .NewRequest (http .MethodGet , dummyURL , nil )
321
322
if err != nil {
322
- return fmt .Errorf ("unexpected error building HTTP request: %v" , err )
323
+ return fmt .Errorf ("building HTTP request: %v" , err )
323
324
}
324
325
325
326
req .Header .Set ("Accept" , "application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json" )
0 commit comments