Skip to content

Commit

Permalink
optimize some func name
Browse files Browse the repository at this point in the history
Signed-off-by: duanmengkk <[email protected]>
  • Loading branch information
duanmengkk committed Jan 29, 2024
1 parent 76f614b commit e107dec
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 e107dec

Please sign in to comment.