Files
open-cluster-management/pkg/cmd/hub/controller.go
Jian Qiu f3ea6c5d99 update deps and enable action
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-06-22 13:15:34 +08:00

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
}