fix: returning unrelevant error (#1188)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>pull/1190/head
parent
021031f6df
commit
afe2557f20
|
|
@ -332,7 +332,7 @@ func K8sHandleCheTLSSecrets(deployContext *DeployContext) (reconcile.Result, err
|
|||
if jobExists {
|
||||
if job.Status.Succeeded == 0 && job.Status.Failed == 0 {
|
||||
logrus.Infof("Waiting on job '%s' to be finished", CheTLSJobName)
|
||||
return reconcile.Result{RequeueAfter: 2 * time.Second}, err
|
||||
return reconcile.Result{RequeueAfter: 2 * time.Second}, nil
|
||||
} else if job.Status.Succeeded > 0 {
|
||||
// Secrets are ready, restart reconcilation loop
|
||||
return reconcile.Result{}, nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue