Files
open-cluster-management/pkg/cmd/operator/hub.go

22 lines
593 B
Go

package operator
import (
"github.com/spf13/cobra"
"github.com/openshift/library-go/pkg/controller/controllercmd"
"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
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
}