Skip to content

Commit

Permalink
fix: returning unrelevant error (#1188)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Nov 22, 2021
1 parent 021031f commit afe2557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/deploy/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afe2557

Please sign in to comment.