move cri command to alpha

Signed-off-by: 24sama <jacksama@foxmail.com>
This commit is contained in:
24sama 2022-11-17 11:24:16 +08:00
parent 0fc2b4557b
commit 729adf42ef
4 changed files with 5 additions and 6 deletions

View File

@ -19,17 +19,18 @@ package alpha
import (
"github.com/spf13/cobra"
"github.com/kubesphere/kubekey/cmd/kk/cmd/alpha/cri"
)
// NewAlphaCmd create a new Alpha command
func NewAlphaCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "alpha",
Short: "Add alpha before the cmds to tag them for testing",
Short: "Commands for features in alpha",
}
cmd.AddCommand(NewCmdCreate())
cmd.AddCommand(NewCmdUpgrade())
cmd.AddCommand(cri.NewCmdCri())
return cmd
}

View File

@ -32,7 +32,7 @@ func NewMigrateOptions() *MigrateOptions {
}
}
// NewCmdMigrate creates a new Migrate command
// NewCmdCri creates a new Migrate command
func NewCmdCri() *cobra.Command {
o := NewMigrateOptions()
cmd := &cobra.Command{

View File

@ -45,7 +45,7 @@ func NewMigrateCriOptions() *MigrateCriOptions {
}
}
// NewCmdDeleteCluster creates a new delete cluster command
// NewCmdMigrateCri creates a new delete cluster command
func NewCmdMigrateCri() *cobra.Command {
o := NewMigrateCriOptions()
cmd := &cobra.Command{

View File

@ -32,7 +32,6 @@ import (
"github.com/kubesphere/kubekey/cmd/kk/cmd/cert"
"github.com/kubesphere/kubekey/cmd/kk/cmd/completion"
"github.com/kubesphere/kubekey/cmd/kk/cmd/create"
"github.com/kubesphere/kubekey/cmd/kk/cmd/cri"
"github.com/kubesphere/kubekey/cmd/kk/cmd/delete"
initOs "github.com/kubesphere/kubekey/cmd/kk/cmd/init"
"github.com/kubesphere/kubekey/cmd/kk/cmd/options"
@ -122,7 +121,6 @@ func NewKubeKeyCommand(o KubeKeyOptions) *cobra.Command {
cmds.AddCommand(completion.NewCmdCompletion())
cmds.AddCommand(version.NewCmdVersion())
cmds.AddCommand(cri.NewCmdCri())
return cmds
}