Skip to content

Commit

Permalink
ensure error is returned (#132)
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu McCloskey <[email protected]>
  • Loading branch information
nabuskey authored Jan 24, 2024
1 parent 82ba464 commit df4305b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controllers/custompackage/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package custompackage
import (
"context"
"fmt"
"github.com/cnoe-io/idpbuilder/pkg/util"
"os"
"path/filepath"
"strings"
"time"

"github.com/cnoe-io/idpbuilder/pkg/util"

argov1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
"github.com/cnoe-io/idpbuilder/api/v1alpha1"
"github.com/cnoe-io/idpbuilder/pkg/k8s"
Expand Down Expand Up @@ -160,7 +161,7 @@ func (r *Reconciler) reconcileArgocdSource(ctx context.Context, resource *v1alph
process, absPath, err := isCNOEDirectory(pkgDir, repoURL)
if err != nil {
logger.Error(err, "processing argocd app source", "dir", pkgDir, "repoURL", repoURL)
return ctrl.Result{RequeueAfter: time.Second * 60}, nil, nil
return ctrl.Result{}, nil, err
}
if !process {
return ctrl.Result{}, nil, nil
Expand Down

0 comments on commit df4305b

Please sign in to comment.