From 626b1f0894ca7f3d31dcb3abcb34051d78fa8f26 Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Sat, 6 Jun 2020 11:31:20 -0400 Subject: [PATCH] Rename nucleus -> registration-operator in .go files --- cmd/nucleus/main.go | 6 +++--- pkg/cmd/operator/hub.go | 4 ++-- pkg/cmd/operator/spoke.go | 4 ++-- pkg/operators/clustermanager/controller.go | 4 ++-- pkg/operators/klusterlet/controller.go | 4 ++-- pkg/operators/klusterlet/controller_test.go | 2 +- pkg/operators/manager.go | 4 ++-- test/integration/doc.go | 2 +- test/integration/hub_test.go | 4 ++-- test/integration/integration_suite_test.go | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/cmd/nucleus/main.go b/cmd/nucleus/main.go index 27d03ae54..6a3dd7d15 100644 --- a/cmd/nucleus/main.go +++ b/cmd/nucleus/main.go @@ -13,8 +13,8 @@ import ( utilflag "k8s.io/component-base/cli/flag" "k8s.io/component-base/logs" - "github.com/open-cluster-management/nucleus/pkg/cmd/operator" - "github.com/open-cluster-management/nucleus/pkg/version" + "github.com/open-cluster-management/registration-operator/pkg/cmd/operator" + "github.com/open-cluster-management/registration-operator/pkg/version" ) func main() { @@ -35,7 +35,7 @@ func main() { func newNucleusCommand() *cobra.Command { cmd := &cobra.Command{ - Use: "nucleus", + Use: "registration-operator", Short: "Nucleus Operator", Run: func(cmd *cobra.Command, args []string) { cmd.Help() diff --git a/pkg/cmd/operator/hub.go b/pkg/cmd/operator/hub.go index b0d7f737c..ad513996a 100644 --- a/pkg/cmd/operator/hub.go +++ b/pkg/cmd/operator/hub.go @@ -5,8 +5,8 @@ import ( "github.com/openshift/library-go/pkg/controller/controllercmd" - "github.com/open-cluster-management/nucleus/pkg/operators" - "github.com/open-cluster-management/nucleus/pkg/version" + "github.com/open-cluster-management/registration-operator/pkg/operators" + "github.com/open-cluster-management/registration-operator/pkg/version" ) // NewHubOperatorCmd generatee a command to start hub operator diff --git a/pkg/cmd/operator/spoke.go b/pkg/cmd/operator/spoke.go index d503db8b2..76508b8f6 100644 --- a/pkg/cmd/operator/spoke.go +++ b/pkg/cmd/operator/spoke.go @@ -5,8 +5,8 @@ import ( "github.com/openshift/library-go/pkg/controller/controllercmd" - "github.com/open-cluster-management/nucleus/pkg/operators" - "github.com/open-cluster-management/nucleus/pkg/version" + "github.com/open-cluster-management/registration-operator/pkg/operators" + "github.com/open-cluster-management/registration-operator/pkg/version" ) // NewKlusterletOperatorCmd generatee a command to start klusterlet operator diff --git a/pkg/operators/clustermanager/controller.go b/pkg/operators/clustermanager/controller.go index 450c24305..d9a1fbfd9 100644 --- a/pkg/operators/clustermanager/controller.go +++ b/pkg/operators/clustermanager/controller.go @@ -27,8 +27,8 @@ import ( operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1" operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1" operatorapiv1 "github.com/open-cluster-management/api/operator/v1" - "github.com/open-cluster-management/nucleus/pkg/helpers" - "github.com/open-cluster-management/nucleus/pkg/operators/clustermanager/bindata" + "github.com/open-cluster-management/registration-operator/pkg/helpers" + "github.com/open-cluster-management/registration-operator/pkg/operators/clustermanager/bindata" ) var ( diff --git a/pkg/operators/klusterlet/controller.go b/pkg/operators/klusterlet/controller.go index 8fdc045e1..dd6cac3bf 100644 --- a/pkg/operators/klusterlet/controller.go +++ b/pkg/operators/klusterlet/controller.go @@ -25,8 +25,8 @@ import ( operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1" operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1" operatorapiv1 "github.com/open-cluster-management/api/operator/v1" - "github.com/open-cluster-management/nucleus/pkg/helpers" - "github.com/open-cluster-management/nucleus/pkg/operators/klusterlet/bindata" + "github.com/open-cluster-management/registration-operator/pkg/helpers" + "github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet/bindata" ) const ( diff --git a/pkg/operators/klusterlet/controller_test.go b/pkg/operators/klusterlet/controller_test.go index aeb96814c..45cc5eb5d 100644 --- a/pkg/operators/klusterlet/controller_test.go +++ b/pkg/operators/klusterlet/controller_test.go @@ -10,7 +10,7 @@ import ( fakeoperatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake" operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions" opratorapiv1 "github.com/open-cluster-management/api/operator/v1" - "github.com/open-cluster-management/nucleus/pkg/helpers" + "github.com/open-cluster-management/registration-operator/pkg/helpers" "github.com/openshift/library-go/pkg/operator/events" "github.com/openshift/library-go/pkg/operator/events/eventstesting" appsv1 "k8s.io/api/apps/v1" diff --git a/pkg/operators/manager.go b/pkg/operators/manager.go index 85aee23b5..78f4ee630 100644 --- a/pkg/operators/manager.go +++ b/pkg/operators/manager.go @@ -12,8 +12,8 @@ import ( operatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned" operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions" - "github.com/open-cluster-management/nucleus/pkg/operators/clustermanager" - "github.com/open-cluster-management/nucleus/pkg/operators/klusterlet" + "github.com/open-cluster-management/registration-operator/pkg/operators/clustermanager" + "github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet" ) // RunClusterManagerOperator starts a new cluster manager operator diff --git a/test/integration/doc.go b/test/integration/doc.go index 3b72d483e..8bc209f04 100644 --- a/test/integration/doc.go +++ b/test/integration/doc.go @@ -1,4 +1,4 @@ -// Package integration provides integration tests for open-cluster-management nucleus, the test cases include +// Package integration provides integration tests for open-cluster-management registration-operator, the test cases include // - TODO deploy/update/remove the cluster manager // - TODO deploy/update/remove the klusterlet package integration diff --git a/test/integration/hub_test.go b/test/integration/hub_test.go index f5ce0ffd9..3de64e2e1 100644 --- a/test/integration/hub_test.go +++ b/test/integration/hub_test.go @@ -12,8 +12,8 @@ import ( "github.com/openshift/library-go/pkg/controller/controllercmd" - "github.com/open-cluster-management/nucleus/pkg/operators" - "github.com/open-cluster-management/nucleus/test/integration/util" + "github.com/open-cluster-management/registration-operator/pkg/operators" + "github.com/open-cluster-management/registration-operator/test/integration/util" operatorapiv1 "github.com/open-cluster-management/api/operator/v1" ) diff --git a/test/integration/integration_suite_test.go b/test/integration/integration_suite_test.go index 612c26fbb..f5992b5ba 100644 --- a/test/integration/integration_suite_test.go +++ b/test/integration/integration_suite_test.go @@ -45,7 +45,7 @@ var _ = ginkgo.BeforeSuite(func(done ginkgo.Done) { var err error - // install nucleus CRDs and start a local kube-apiserver + // install registration-operator CRDs and start a local kube-apiserver testEnv = &envtest.Environment{ ErrorIfCRDPathMissing: true, CRDDirectoryPaths: []string{