Skip to content

Commit

Permalink
Merge pull request #396 from duanmengkk/optimize_some_code
Browse files Browse the repository at this point in the history
optimize some func name
  • Loading branch information
kosmos-robot authored Feb 1, 2024
2 parents ff34de5 + e107dec commit e3fe785
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/clusterlink/network-manager/app/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterlink/network-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion cmd/clustertree/cluster-manager/app/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/clustertree/cluster-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e3fe785

Please sign in to comment.