Skip to content

Commit

Permalink
fixup! Address golangci-lint comments
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Short <[email protected]>
  • Loading branch information
tmshort committed Jul 13, 2023
1 parent 1537ffa commit fe2b2d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/package-server/provider/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ func newPackageManifest(ctx context.Context, logger *logrus.Entry, pkg *api.Pack
defaultCsv *operatorsv1alpha1.ClusterServiceVersion
)
for _, pkgChannel := range pkgChannels {
bundle, err := client.GetBundle(ctx, &api.GetBundleRequest{PkgName: pkg.GetName(), ChannelName: pkgChannel.GetName()})
// TODO: replace with non-deprecated API (e.g. client.GetBundle())
// nolint:staticcheck
bundle, err := client.GetBundleForChannel(ctx, &api.GetBundleInChannelRequest{PkgName: pkg.GetName(), ChannelName: pkgChannel.GetName()})
if err != nil {
logger.WithError(err).WithField("channel", pkgChannel.GetName()).Warn("error getting bundle, eliding channel")
defaultElided = defaultElided || pkgChannel.Name == manifest.Status.DefaultChannel
Expand Down

0 comments on commit fe2b2d0

Please sign in to comment.