Skip to content

Commit

Permalink
Remove dependency to github.com/pkg/errors
Browse files Browse the repository at this point in the history
Follow-up on #2943
Part of #3277
  • Loading branch information
p-se committed Feb 6, 2025
1 parent ce22ca9 commit 0c5e62f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cmd/controller/target/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (

"github.com/Masterminds/sprig/v3"
"github.com/go-logr/logr"
"github.com/pkg/errors"

"github.com/rancher/fleet/internal/cmd/controller/options"
"github.com/rancher/fleet/internal/cmd/controller/target/matcher"
Expand Down Expand Up @@ -86,7 +85,7 @@ func (m *Manager) Targets(ctx context.Context, bundle *fleet.Bundle, manifestID
opts := options.Merge(bundle.Spec.BundleDeploymentOptions, targetOpts)
err = preprocessHelmValues(logger, &opts, &cluster)
if err != nil {
return nil, errors.Wrap(err, fmt.Sprintf("cluster %s in namespace %s", cluster.Name, cluster.Namespace))
return nil, fmt.Errorf("cluster %s in namespace %s: %w", cluster.Name, cluster.Namespace, err)
}

deploymentID, err := options.DeploymentID(manifestID, opts)
Expand Down

0 comments on commit 0c5e62f

Please # to comment.