Files
open-cluster-management/pkg/cmd/operator/hub.go
Jian Qiu ef338a1b0b Update deps and enable action
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2021-06-21 11:42:45 +08:00

22 lines
577 B
Go

package operator
import (
"github.com/spf13/cobra"
"github.com/openshift/library-go/pkg/controller/controllercmd"
"open-cluster-management.io/registration-operator/pkg/operators"
"open-cluster-management.io/registration-operator/pkg/version"
)
// NewHubOperatorCmd generatee a command to start hub operator
func NewHubOperatorCmd() *cobra.Command {
cmd := controllercmd.
NewControllerCommandConfig("clustermanager", version.Get(), operators.RunClusterManagerOperator).
NewCommand()
cmd.Use = "hub"
cmd.Short = "Start the cluster manager operator"
return cmd
}