mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
move cri command to alpha
Signed-off-by: 24sama <jacksama@foxmail.com>
This commit is contained in:
parent
0fc2b4557b
commit
729adf42ef
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
@ -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{
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue