diff --git a/changelog/fragments/mv-pkg-helm.yaml b/changelog/fragments/mv-pkg-helm.yaml new file mode 100644 index 00000000000..23cec93a503 --- /dev/null +++ b/changelog/fragments/mv-pkg-helm.yaml @@ -0,0 +1,15 @@ +# entries is a list of entries to include in +# release notes and/or the migration guide +entries: + - description: > + Move pkg/helm to internal/helm + + kind: "removal" + + # Is this a breaking change? + breaking: yes + + migration: + header: Move pkg/helm to internal/helm + body: > + TBD diff --git a/cmd/helm-operator/main.go b/cmd/helm-operator/main.go index b3b2b0d7934..a9ce4a89780 100644 --- a/cmd/helm-operator/main.go +++ b/cmd/helm-operator/main.go @@ -30,12 +30,12 @@ import ( "sigs.k8s.io/controller-runtime/pkg/manager" "sigs.k8s.io/controller-runtime/pkg/manager/signals" + "github.com/operator-framework/operator-sdk/internal/helm/controller" + "github.com/operator-framework/operator-sdk/internal/helm/flags" + "github.com/operator-framework/operator-sdk/internal/helm/release" + "github.com/operator-framework/operator-sdk/internal/helm/watches" "github.com/operator-framework/operator-sdk/internal/log/zap" "github.com/operator-framework/operator-sdk/internal/util/k8sutil" - "github.com/operator-framework/operator-sdk/pkg/helm/controller" - "github.com/operator-framework/operator-sdk/pkg/helm/flags" - "github.com/operator-framework/operator-sdk/pkg/helm/release" - "github.com/operator-framework/operator-sdk/pkg/helm/watches" sdkVersion "github.com/operator-framework/operator-sdk/version" ) diff --git a/pkg/helm/client/client.go b/internal/helm/client/client.go similarity index 100% rename from pkg/helm/client/client.go rename to internal/helm/client/client.go diff --git a/pkg/helm/client/doc.go b/internal/helm/client/doc.go similarity index 100% rename from pkg/helm/client/doc.go rename to internal/helm/client/doc.go diff --git a/pkg/helm/controller/controller.go b/internal/helm/controller/controller.go similarity index 98% rename from pkg/helm/controller/controller.go rename to internal/helm/controller/controller.go index f28ae9a770c..d991866d294 100644 --- a/pkg/helm/controller/controller.go +++ b/internal/helm/controller/controller.go @@ -35,8 +35,8 @@ import ( libhandler "github.com/operator-framework/operator-lib/handler" "github.com/operator-framework/operator-lib/predicate" + "github.com/operator-framework/operator-sdk/internal/helm/release" "github.com/operator-framework/operator-sdk/internal/util/k8sutil" - "github.com/operator-framework/operator-sdk/pkg/helm/release" ) var log = logf.Log.WithName("helm.controller") diff --git a/pkg/helm/controller/doc.go b/internal/helm/controller/doc.go similarity index 100% rename from pkg/helm/controller/doc.go rename to internal/helm/controller/doc.go diff --git a/pkg/helm/controller/reconcile.go b/internal/helm/controller/reconcile.go similarity index 98% rename from pkg/helm/controller/reconcile.go rename to internal/helm/controller/reconcile.go index 2d3811b5afd..407c6d6b183 100644 --- a/pkg/helm/controller/reconcile.go +++ b/internal/helm/controller/reconcile.go @@ -34,9 +34,9 @@ import ( "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" "sigs.k8s.io/controller-runtime/pkg/reconcile" - "github.com/operator-framework/operator-sdk/pkg/helm/internal/diff" - "github.com/operator-framework/operator-sdk/pkg/helm/internal/types" - "github.com/operator-framework/operator-sdk/pkg/helm/release" + "github.com/operator-framework/operator-sdk/internal/helm/internal/diff" + "github.com/operator-framework/operator-sdk/internal/helm/internal/types" + "github.com/operator-framework/operator-sdk/internal/helm/release" ) // blank assignment to verify that HelmOperatorReconciler implements reconcile.Reconciler diff --git a/pkg/helm/controller/reconcile_test.go b/internal/helm/controller/reconcile_test.go similarity index 100% rename from pkg/helm/controller/reconcile_test.go rename to internal/helm/controller/reconcile_test.go diff --git a/pkg/helm/flags/flag.go b/internal/helm/flags/flag.go similarity index 100% rename from pkg/helm/flags/flag.go rename to internal/helm/flags/flag.go diff --git a/pkg/helm/internal/diff/diff.go b/internal/helm/internal/diff/diff.go similarity index 100% rename from pkg/helm/internal/diff/diff.go rename to internal/helm/internal/diff/diff.go diff --git a/pkg/helm/internal/types/doc.go b/internal/helm/internal/types/doc.go similarity index 100% rename from pkg/helm/internal/types/doc.go rename to internal/helm/internal/types/doc.go diff --git a/pkg/helm/internal/types/types.go b/internal/helm/internal/types/types.go similarity index 100% rename from pkg/helm/internal/types/types.go rename to internal/helm/internal/types/types.go diff --git a/pkg/helm/internal/types/types_test.go b/internal/helm/internal/types/types_test.go similarity index 100% rename from pkg/helm/internal/types/types_test.go rename to internal/helm/internal/types/types_test.go diff --git a/pkg/helm/release/doc.go b/internal/helm/release/doc.go similarity index 100% rename from pkg/helm/release/doc.go rename to internal/helm/release/doc.go diff --git a/pkg/helm/release/manager.go b/internal/helm/release/manager.go similarity index 99% rename from pkg/helm/release/manager.go rename to internal/helm/release/manager.go index 1a30a88934a..33ce5e5d1a8 100644 --- a/pkg/helm/release/manager.go +++ b/internal/helm/release/manager.go @@ -39,7 +39,7 @@ import ( "k8s.io/apimachinery/pkg/util/strategicpatch" "k8s.io/cli-runtime/pkg/resource" - "github.com/operator-framework/operator-sdk/pkg/helm/internal/types" + "github.com/operator-framework/operator-sdk/internal/helm/internal/types" ) // Manager manages a Helm release. It can install, upgrade, reconcile, diff --git a/pkg/helm/release/manager_factory.go b/internal/helm/release/manager_factory.go similarity index 97% rename from pkg/helm/release/manager_factory.go rename to internal/helm/release/manager_factory.go index 152a36e46bb..406c5dbf47d 100644 --- a/pkg/helm/release/manager_factory.go +++ b/internal/helm/release/manager_factory.go @@ -28,8 +28,8 @@ import ( v1 "k8s.io/client-go/kubernetes/typed/core/v1" crmanager "sigs.k8s.io/controller-runtime/pkg/manager" - "github.com/operator-framework/operator-sdk/pkg/helm/client" - "github.com/operator-framework/operator-sdk/pkg/helm/internal/types" + "github.com/operator-framework/operator-sdk/internal/helm/client" + "github.com/operator-framework/operator-sdk/internal/helm/internal/types" ) // ManagerFactory creates Managers that are specific to custom resources. It is diff --git a/pkg/helm/release/manager_test.go b/internal/helm/release/manager_test.go similarity index 100% rename from pkg/helm/release/manager_test.go rename to internal/helm/release/manager_test.go diff --git a/pkg/helm/watches/watches.go b/internal/helm/watches/watches.go similarity index 100% rename from pkg/helm/watches/watches.go rename to internal/helm/watches/watches.go diff --git a/pkg/helm/watches/watches_test.go b/internal/helm/watches/watches_test.go similarity index 100% rename from pkg/helm/watches/watches_test.go rename to internal/helm/watches/watches_test.go