Skip to content

Commit 3fb698e

Browse files
committed
fix format, imports, and lint
Signed-off-by: perdasilva <[email protected]>
1 parent 9fd11f1 commit 3fb698e

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

controllers/catalogsource_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ import (
1010
"github.com/operator-framework/api/pkg/operators/v1alpha1"
1111
"github.com/operator-framework/deppy/pkg/deppy"
1212
"github.com/operator-framework/deppy/pkg/deppy/input"
13-
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
1413
"k8s.io/apimachinery/pkg/api/errors"
1514
"k8s.io/apimachinery/pkg/runtime"
1615
"k8s.io/client-go/tools/record"
1716
ctrl "sigs.k8s.io/controller-runtime"
1817
"sigs.k8s.io/controller-runtime/pkg/client"
1918
"sigs.k8s.io/controller-runtime/pkg/log"
19+
20+
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
2021
)
2122

2223
const (

controllers/catalogsource_controller_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ import (
1010
"github.com/operator-framework/api/pkg/operators/v1alpha1"
1111
"github.com/operator-framework/deppy/pkg/deppy"
1212
"github.com/operator-framework/deppy/pkg/deppy/input"
13-
catsrccontroller "github.com/operator-framework/operator-controller/controllers"
14-
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
1513
v1 "k8s.io/api/core/v1"
1614
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1715
"k8s.io/apimachinery/pkg/types"
1816
"k8s.io/apimachinery/pkg/util/rand"
1917
"k8s.io/client-go/tools/record"
2018
ctrl "sigs.k8s.io/controller-runtime"
19+
20+
catsrccontroller "github.com/operator-framework/operator-controller/controllers"
21+
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
2122
)
2223

2324
var _ catalogsource.RegistryClient = &fakeRegistryClient{}
@@ -137,6 +138,7 @@ var _ = Describe("CatalogSource Controller Test", func() {
137138
By("re-running reconcile")
138139
res, err = reconciler.Reconcile(ctx, ctrl.Request{NamespacedName: catSrcKey})
139140
Expect(res).To(Equal(ctrl.Result{}))
141+
Expect(err).ToNot(HaveOccurred())
140142

141143
By("checking the cache is populated")
142144
entities = nil

internal/resolution/entity_sources/catalogsource/registry_bundle_to_entity_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package catalogsource_test
22

33
import (
44
"github.com/operator-framework/deppy/pkg/deppy/input"
5-
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
65
catalogsourceapi "github.com/operator-framework/operator-registry/pkg/api"
76

7+
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
8+
89
. "github.com/onsi/ginkgo/v2"
910
. "github.com/onsi/gomega"
1011
)

internal/resolution/entity_sources/catalogsource/registry_grpc_client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import (
99
. "github.com/onsi/gomega"
1010
"github.com/operator-framework/api/pkg/operators/v1alpha1"
1111
"github.com/operator-framework/deppy/pkg/deppy/input"
12-
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
1312
"github.com/operator-framework/operator-registry/pkg/api"
1413
"google.golang.org/grpc"
1514
"google.golang.org/grpc/reflection"
15+
16+
"github.com/operator-framework/operator-controller/internal/resolution/entity_sources/catalogsource"
1617
)
1718

1819
type mockServer struct {

internal/resolution/resolver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import (
66

77
"github.com/operator-framework/deppy/pkg/deppy/input"
88
"github.com/operator-framework/deppy/pkg/deppy/solver"
9-
"github.com/operator-framework/operator-controller/internal/resolution/variable_sources/olm"
109
"sigs.k8s.io/controller-runtime/pkg/client"
1110

11+
"github.com/operator-framework/operator-controller/internal/resolution/variable_sources/olm"
12+
1213
"github.com/operator-framework/operator-controller/api/v1alpha1"
1314
)
1415

internal/resolution/variable_sources/entity/bundle_entity.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ type BundleEntity struct {
5353
requiredPackages []PackageRequired
5454
channelProperties *ChannelProperties
5555
semVersion *semver.Version
56-
bundlePath string
5756
mu sync.RWMutex
5857
}
5958

test/e2e/catalogsource_install_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ func createTestRegistryService(ctx context.Context, cli *kubernetes.Clientset, n
152152
Expect(err).To(BeNil())
153153

154154
conn, err := grpc.Dial(getServiceAddress(ctx, cli, namespace, svc.Name), []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())}...)
155+
Expect(err).ToNot(HaveOccurred())
156+
155157
defer conn.Close()
156158
oldState := conn.GetState()
157159
Eventually(func(g Gomega) {

0 commit comments

Comments
 (0)