mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
Rename nucleus -> registration-operator in .go files
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user