File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
components/node-labeler/cmd Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r
158
158
159
159
nodeName := pod .Spec .NodeName
160
160
if nodeName == "" {
161
- return reconcile.Result {RequeueAfter : time .Second * 10 }, err
161
+ return reconcile.Result {RequeueAfter : time .Second * 10 }, nil
162
162
}
163
163
164
164
var (
@@ -204,8 +204,7 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r
204
204
}
205
205
206
206
if ! IsPodReady (& pod ) {
207
- // not ready. Wait until the next update.
208
- return reconcile.Result {}, nil
207
+ return reconcile.Result {RequeueAfter : time .Second * 10 }, nil
209
208
}
210
209
211
210
var node corev1.Node
@@ -235,6 +234,7 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r
235
234
236
235
err = updateLabel (labelToUpdate , true , nodeName , r )
237
236
if err != nil {
237
+ log .WithError (err ).Error ("updating node label" )
238
238
return reconcile.Result {}, fmt .Errorf ("trying to add the label: %v" , err )
239
239
}
240
240
You can’t perform that action at this time.
0 commit comments