Skip to content

Commit

Permalink
wrap error message
Browse files Browse the repository at this point in the history
Signed-off-by: rashmi_kh <[email protected]>
  • Loading branch information
rashmi43 committed Nov 19, 2024
1 parent 1bbb34a commit 5196201
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/controllers/clusterextension_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import (
"github.com/operator-framework/api/pkg/operators/v1alpha1"
catalogd "github.com/operator-framework/catalogd/api/v1"
helmclient "github.com/operator-framework/helm-operator-plugins/pkg/client"
tokengetter "github.com/operator-framework/operator-controller/internal/authentication"
"github.com/operator-framework/operator-registry/alpha/declcfg"

ocv1 "github.com/operator-framework/operator-controller/api/v1"
Expand Down Expand Up @@ -206,6 +207,11 @@ func (r *ClusterExtensionReconciler) reconcile(ctx context.Context, ext *ocv1.Cl
installedBundle, err := r.InstalledBundleGetter.GetInstalledBundle(ctx, ext)
if err != nil {
setInstallStatus(ext, nil)
var saerr *tokengetter.SANotFoundError
if errors.As(err, &saerr) {
l.Info("is a SAError")
err = saerr
}
setInstalledStatusConditionUnknown(ext, err.Error())
setStatusProgressing(ext, errors.New("retrying to get installed bundle"))
return ctrl.Result{}, err
Expand Down

0 comments on commit 5196201

Please sign in to comment.