diff --git a/cmd/clusterlink/network-manager/app/manager.go b/cmd/clusterlink/network-manager/app/manager.go index 0e884cac5..5c630082d 100644 --- a/cmd/clusterlink/network-manager/app/manager.go +++ b/cmd/clusterlink/network-manager/app/manager.go @@ -16,7 +16,7 @@ import ( "github.com/kosmos.io/kosmos/pkg/sharedcli/klogflag" ) -func NewAgentCommand(ctx context.Context) *cobra.Command { +func NewNetworkManagerCommand(ctx context.Context) *cobra.Command { opts := options.NewOptions() cmd := &cobra.Command{ diff --git a/cmd/clusterlink/network-manager/main.go b/cmd/clusterlink/network-manager/main.go index 3439f2980..72e2a68d7 100644 --- a/cmd/clusterlink/network-manager/main.go +++ b/cmd/clusterlink/network-manager/main.go @@ -11,7 +11,7 @@ import ( func main() { ctx := apiserver.SetupSignalContext() - cmd := app.NewAgentCommand(ctx) + cmd := app.NewNetworkManagerCommand(ctx) code := cli.Run(cmd) os.Exit(code) } diff --git a/cmd/clustertree/cluster-manager/app/manager.go b/cmd/clustertree/cluster-manager/app/manager.go index 1ad98cda5..78ddea2ed 100644 --- a/cmd/clustertree/cluster-manager/app/manager.go +++ b/cmd/clustertree/cluster-manager/app/manager.go @@ -31,7 +31,7 @@ import ( "github.com/kosmos.io/kosmos/pkg/utils" ) -func NewAgentCommand(ctx context.Context) (*cobra.Command, error) { +func NewClusterManagerCommand(ctx context.Context) (*cobra.Command, error) { opts, err := options.NewOptions() if err != nil { return nil, err diff --git a/cmd/clustertree/cluster-manager/main.go b/cmd/clustertree/cluster-manager/main.go index f89385609..676a4a603 100644 --- a/cmd/clustertree/cluster-manager/main.go +++ b/cmd/clustertree/cluster-manager/main.go @@ -12,7 +12,7 @@ import ( func main() { ctx := apiserver.SetupSignalContext() - cmd, err := app.NewAgentCommand(ctx) + cmd, err := app.NewClusterManagerCommand(ctx) if err != nil { klog.Errorf("error happened when new agent command, err: %v", err) }