mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-16 22:27:34 +00:00
22 lines
566 B
Go
22 lines
566 B
Go
package operator
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/openshift/library-go/pkg/controller/controllercmd"
|
|
|
|
"github.com/open-cluster-management/nucleus/pkg/operators"
|
|
"github.com/open-cluster-management/nucleus/pkg/version"
|
|
)
|
|
|
|
// NewSpokeOperatorCmd generatee a command to start spoke operator
|
|
func NewSpokeOperatorCmd() *cobra.Command {
|
|
cmd := controllercmd.
|
|
NewControllerCommandConfig("nucleus-spoke", version.Get(), operators.RunNucleusSpokeOperator).
|
|
NewCommand()
|
|
cmd.Use = "spoke"
|
|
cmd.Short = "Start the nucleus hub operator"
|
|
|
|
return cmd
|
|
}
|