mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-09 10:47:35 +00:00
22 lines
553 B
Go
22 lines
553 B
Go
package operator
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/openshift/library-go/pkg/controller/controllercmd"
|
|
|
|
"github.com/open-cluster-management/nucleus/pkg/operators"
|
|
"github.com/open-cluster-management/nucleus/pkg/version"
|
|
)
|
|
|
|
// NewOperatorCmd generatee a command to start workload agent
|
|
func NewOperatorCmd() *cobra.Command {
|
|
cmd := controllercmd.
|
|
NewControllerCommandConfig("nucleus-operator", version.Get(), operators.RunNucleusOperator).
|
|
NewCommand()
|
|
cmd.Use = "operator"
|
|
cmd.Short = "Start the nucleus operator"
|
|
|
|
return cmd
|
|
}
|