Skip to content

Commit 9be7693

Browse files
Moving pkgs to internal/operator-controller/ (#1737)
This partially fixes #1707. The intent is to consolidate internal code from operator-controller and catalogd within internal e.g.: catalogd/ - code specific to catalogd internal/ - holds internal code of catalogd and operator-controller. internal/catalogd - holds unexported code specific to catalogd internal/operator-controller - holds unexported code specific to operator-comntroller internal/shared - shared code between catalogd and operator-controller which can not be exported outside. Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
1 parent 4304961 commit 9be7693

File tree

78 files changed

+85
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+85
-85
lines changed

api/v1/clusterextension_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"golang.org/x/exp/slices" // replace with "slices" in go 1.21
1414

15-
"github.com/operator-framework/operator-controller/internal/conditionsets"
15+
"github.com/operator-framework/operator-controller/internal/operator-controller/conditionsets"
1616
)
1717

1818
func TestClusterExtensionTypeRegistration(t *testing.T) {

catalogd/internal/source/containers_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"sigs.k8s.io/controller-runtime/pkg/reconcile"
2424

2525
catalogdv1 "github.com/operator-framework/operator-controller/catalogd/api/v1"
26-
"github.com/operator-framework/operator-controller/internal/httputil"
26+
"github.com/operator-framework/operator-controller/internal/operator-controller/httputil"
2727
fsutil "github.com/operator-framework/operator-controller/internal/util/fs"
2828
imageutil "github.com/operator-framework/operator-controller/internal/util/image"
2929
)

cmd/operator-controller/main.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ import (
5656

5757
ocv1 "github.com/operator-framework/operator-controller/api/v1"
5858
catalogd "github.com/operator-framework/operator-controller/catalogd/api/v1"
59-
"github.com/operator-framework/operator-controller/internal/action"
60-
"github.com/operator-framework/operator-controller/internal/applier"
61-
"github.com/operator-framework/operator-controller/internal/authentication"
62-
"github.com/operator-framework/operator-controller/internal/catalogmetadata/cache"
63-
catalogclient "github.com/operator-framework/operator-controller/internal/catalogmetadata/client"
64-
"github.com/operator-framework/operator-controller/internal/contentmanager"
65-
"github.com/operator-framework/operator-controller/internal/controllers"
66-
"github.com/operator-framework/operator-controller/internal/features"
67-
"github.com/operator-framework/operator-controller/internal/finalizers"
68-
"github.com/operator-framework/operator-controller/internal/httputil"
69-
"github.com/operator-framework/operator-controller/internal/resolve"
70-
"github.com/operator-framework/operator-controller/internal/rukpak/preflights/crdupgradesafety"
71-
"github.com/operator-framework/operator-controller/internal/rukpak/source"
72-
"github.com/operator-framework/operator-controller/internal/scheme"
59+
"github.com/operator-framework/operator-controller/internal/operator-controller/action"
60+
"github.com/operator-framework/operator-controller/internal/operator-controller/applier"
61+
"github.com/operator-framework/operator-controller/internal/operator-controller/authentication"
62+
"github.com/operator-framework/operator-controller/internal/operator-controller/catalogmetadata/cache"
63+
catalogclient "github.com/operator-framework/operator-controller/internal/operator-controller/catalogmetadata/client"
64+
"github.com/operator-framework/operator-controller/internal/operator-controller/contentmanager"
65+
"github.com/operator-framework/operator-controller/internal/operator-controller/controllers"
66+
"github.com/operator-framework/operator-controller/internal/operator-controller/features"
67+
"github.com/operator-framework/operator-controller/internal/operator-controller/finalizers"
68+
"github.com/operator-framework/operator-controller/internal/operator-controller/httputil"
69+
"github.com/operator-framework/operator-controller/internal/operator-controller/resolve"
70+
"github.com/operator-framework/operator-controller/internal/operator-controller/rukpak/preflights/crdupgradesafety"
71+
"github.com/operator-framework/operator-controller/internal/operator-controller/rukpak/source"
72+
"github.com/operator-framework/operator-controller/internal/operator-controller/scheme"
7373
fsutil "github.com/operator-framework/operator-controller/internal/util/fs"
7474
"github.com/operator-framework/operator-controller/internal/version"
7575
)

internal/action/helm.go renamed to internal/operator-controller/action/helm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
actionclient "github.com/operator-framework/helm-operator-plugins/pkg/client"
1111

12-
olmv1error "github.com/operator-framework/operator-controller/internal/action/error"
12+
olmv1error "github.com/operator-framework/operator-controller/internal/operator-controller/action/error"
1313
)
1414

1515
type ActionClientGetter struct {

internal/action/restconfig.go renamed to internal/operator-controller/action/restconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"sigs.k8s.io/controller-runtime/pkg/client"
1010

1111
ocv1 "github.com/operator-framework/operator-controller/api/v1"
12-
"github.com/operator-framework/operator-controller/internal/authentication"
12+
"github.com/operator-framework/operator-controller/internal/operator-controller/authentication"
1313
)
1414

1515
func ServiceAccountRestConfigMapper(tokenGetter *authentication.TokenGetter) func(ctx context.Context, o client.Object, c *rest.Config) (*rest.Config, error) {

internal/applier/helm.go renamed to internal/operator-controller/applier/helm.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import (
2424
helmclient "github.com/operator-framework/helm-operator-plugins/pkg/client"
2525

2626
ocv1 "github.com/operator-framework/operator-controller/api/v1"
27-
"github.com/operator-framework/operator-controller/internal/features"
28-
"github.com/operator-framework/operator-controller/internal/rukpak/convert"
29-
"github.com/operator-framework/operator-controller/internal/rukpak/preflights/crdupgradesafety"
30-
"github.com/operator-framework/operator-controller/internal/rukpak/util"
27+
"github.com/operator-framework/operator-controller/internal/operator-controller/features"
28+
"github.com/operator-framework/operator-controller/internal/operator-controller/rukpak/convert"
29+
"github.com/operator-framework/operator-controller/internal/operator-controller/rukpak/preflights/crdupgradesafety"
30+
"github.com/operator-framework/operator-controller/internal/operator-controller/rukpak/util"
3131
)
3232

3333
const (

0 commit comments

Comments
 (0)