mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-06 17:27:08 +00:00
21 lines
493 B
Go
21 lines
493 B
Go
package hub
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/openshift/library-go/pkg/controller/controllercmd"
|
|
|
|
"open-cluster-management.io/registration/pkg/hub"
|
|
"open-cluster-management.io/registration/pkg/version"
|
|
)
|
|
|
|
func NewController() *cobra.Command {
|
|
cmd := controllercmd.
|
|
NewControllerCommandConfig("registration-controller", version.Get(), hub.RunControllerManager).
|
|
NewCommand()
|
|
cmd.Use = "controller"
|
|
cmd.Short = "Start the Cluster Registration Controller"
|
|
|
|
return cmd
|
|
}
|