Skip to content

Commit

Permalink
Ensure flux test gets normal grpc result.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Nelson <[email protected]>
  • Loading branch information
absoludity committed Jun 20, 2023
1 parent 36a4be7 commit 679e182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/kubeapps-apis/plugins/fluxv2/packages/v1alpha1/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func (s *Server) availableChartDetail(ctx context.Context, headers http.Header,

repoN, chartName, err := pkgutils.SplitPackageIdentifier(packageRef.Identifier)
if err != nil {
return nil, err
// The helper has been updated to return connect errors, so just ensure
// until switched that a grpc error is returned.
return nil, status.Error(codes.InvalidArgument, err.Error())
}

// check specified repo exists and is in ready state
Expand Down

0 comments on commit 679e182

Please sign in to comment.