Skip to content

Commit

Permalink
Fix #792: fix findings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro authored and astefanutti committed Sep 18, 2019
1 parent 21cc250 commit 4fa3d1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"os/user"
"path/filepath"

"k8s.io/apimachinery/pkg/api/meta"
"github.com/apache/camel-k/pkg/apis"
"github.com/operator-framework/operator-sdk/pkg/k8sutil"
"github.com/pkg/errors"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes"
Expand Down
5 changes: 3 additions & 2 deletions pkg/client/fastmapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ func newFastDiscoveryRESTMapperWithFilter(config *rest.Config, filter func(*meta
wg := wait.Group{}
totalCount := 0
pickedCount := 0
var grs []*restmapper.APIGroupResources
grs := make([]*restmapper.APIGroupResources, 0)
for _, group := range groups.Groups {
pick := filter(&group)
pinnedGroup := group
pick := filter(&pinnedGroup)
logrus.Debugf("Group: %s %v", group.Name, pick)
totalCount++
if !pick {
Expand Down

0 comments on commit 4fa3d1a

Please sign in to comment.