Merge pull request #5299 from whitewindmills/app-failover-logs
cleanup: Print seconds to avoid unreadable minutes
This commit is contained in:
commit
4124ba8513
|
@ -84,7 +84,7 @@ func (c *CRBApplicationFailoverController) Reconcile(ctx context.Context, req co
|
||||||
return controllerruntime.Result{}, err
|
return controllerruntime.Result{}, err
|
||||||
}
|
}
|
||||||
if retryDuration > 0 {
|
if retryDuration > 0 {
|
||||||
klog.V(4).Infof("Retry to check health status of the workload after %v minutes.", retryDuration.Minutes())
|
klog.V(4).Infof("Retry to check health status of the workload after %v seconds.", retryDuration.Seconds())
|
||||||
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
|
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
|
||||||
}
|
}
|
||||||
return controllerruntime.Result{}, nil
|
return controllerruntime.Result{}, nil
|
||||||
|
|
|
@ -84,7 +84,7 @@ func (c *RBApplicationFailoverController) Reconcile(ctx context.Context, req con
|
||||||
return controllerruntime.Result{}, err
|
return controllerruntime.Result{}, err
|
||||||
}
|
}
|
||||||
if retryDuration > 0 {
|
if retryDuration > 0 {
|
||||||
klog.V(4).Infof("Retry to check health status of the workload after %v minutes.", retryDuration.Minutes())
|
klog.V(4).Infof("Retry to check health status of the workload after %v seconds.", retryDuration.Seconds())
|
||||||
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
|
return controllerruntime.Result{RequeueAfter: retryDuration}, nil
|
||||||
}
|
}
|
||||||
return controllerruntime.Result{}, nil
|
return controllerruntime.Result{}, nil
|
||||||
|
|
Loading…
Reference in New Issue