Add spoke operator

This commit is contained in:
Jian Qiu
2020-04-30 14:14:17 +08:00
parent fdbe918b1b
commit ce565e6380
24 changed files with 1598 additions and 125 deletions

View File

@@ -9,10 +9,10 @@ import (
"github.com/open-cluster-management/nucleus/pkg/version"
)
// NewOperator generatee a command to start workload agent
// NewOperatorCmd generatee a command to start workload agent
func NewOperatorCmd() *cobra.Command {
cmd := controllercmd.
NewControllerCommandConfig("operator", version.Get(), operators.RunNucleusOperator).
NewControllerCommandConfig("nucleus-operator", version.Get(), operators.RunNucleusOperator).
NewCommand()
cmd.Use = "operator"
cmd.Short = "Start the nucleus operator"