mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-14 21:28:28 +00:00
22 lines
608 B
Go
22 lines
608 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"
|
|
)
|
|
|
|
// NewKlusterletOperatorCmd generatee a command to start klusterlet operator
|
|
func NewKlusterletOperatorCmd() *cobra.Command {
|
|
cmd := controllercmd.
|
|
NewControllerCommandConfig("klusterlet", version.Get(), operators.RunKlusterletOperator).
|
|
NewCommand()
|
|
cmd.Use = "klusterlet"
|
|
cmd.Short = "Start the klusterlet operator"
|
|
|
|
return cmd
|
|
}
|