fix: returning unrelevant error (#1188)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1190/head
Anatolii Bazko 2021-11-22 12:24:41 +02:00 committed by GitHub
parent 021031f6df
commit afe2557f20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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