Skip to content

Commit d3b0724

Browse files
committed
1
Signed-off-by: Manuel de Brito Fontes <[email protected]>
1 parent 14c9a80 commit d3b0724

File tree

1 file changed

+4
-2
lines changed
  • components/node-labeler/cmd

1 file changed

+4
-2
lines changed

components/node-labeler/cmd/run.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ type PodReconciler struct {
133133
}
134134

135135
func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error) {
136+
log.WithField("pod", req.Name).Info("reconciling")
137+
136138
var pod corev1.Pod
137139
err := r.Get(ctx, req.NamespacedName, &pod)
138140
if err != nil {
@@ -209,14 +211,14 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (r
209211
err = checkTCPPortIsReachable(ipAddress, port)
210212
if err != nil {
211213
log.WithField("host", ipAddress).WithField("port", port).WithField("pod", pod.Name).WithError(err).Error("checking if TCP port is open")
212-
return reconcile.Result{RequeueAfter: time.Second * 10}, nil
214+
return reconcile.Result{RequeueAfter: time.Second * 5}, nil
213215
}
214216

215217
if component == registryFacade {
216218
err = checkRegistryFacade(ipAddress, port)
217219
if err != nil {
218220
log.WithError(err).Error("checking registry-facade")
219-
return reconcile.Result{RequeueAfter: time.Second * 10}, nil
221+
return reconcile.Result{RequeueAfter: time.Second * 5}, nil
220222
}
221223
}
222224

0 commit comments

Comments
 (0)