Skip to content

Commit

Permalink
refactor: reimplement the create cmd for k8s and bare-metal (#177)
Browse files Browse the repository at this point in the history
* refactor: implement cluster create on k8s

Signed-off-by: sh2 <shawnhxh@outlook.com>

* refactor: implement cluster create on bare-metal

Signed-off-by: sh2 <shawnhxh@outlook.com>

* enrich the log message

Signed-off-by: sh2 <shawnhxh@outlook.com>

---------

Signed-off-by: sh2 <shawnhxh@outlook.com>
  • Loading branch information
shawnh2 committed Oct 31, 2023
1 parent dadc7a0 commit 53242c3
Show file tree
Hide file tree
Showing 38 changed files with 1,010 additions and 1,288 deletions.
3 changes: 1 addition & 2 deletions cmd/gtctl/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (

"github.com/spf13/cobra"

"github.com/GreptimeTeam/gtctl/pkg/cmd/gtctl/cluster/create"
"github.com/GreptimeTeam/gtctl/pkg/cmd/gtctl/cluster/delete"
"github.com/GreptimeTeam/gtctl/pkg/logger"
)
Expand All @@ -40,7 +39,7 @@ func NewClusterCommand(l logger.Logger) *cobra.Command {
}

// TODO(sh2): will refactor them in the following PR.
cmd.AddCommand(create.NewCreateClusterCommand(l))
cmd.AddCommand(NewCreateClusterCommand(l))
cmd.AddCommand(delete.NewDeleteClusterCommand(l))
cmd.AddCommand(NewScaleClusterCommand(l))
cmd.AddCommand(NewGetClusterCommand(l))
Expand Down
Loading

0 comments on commit 53242c3

Please sign in to comment.