22 lines
351 B
Go
22 lines
351 B
Go
package cmd
|
|
|
|
import (
|
|
"kube-forge/internal/kubespray"
|
|
"kube-forge/internal/templates"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(resetCmd)
|
|
}
|
|
|
|
var resetCmd = &cobra.Command{
|
|
Use: "reset",
|
|
Short: "Reset cluster",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
templates.ApplyK8sTemplates()
|
|
kubespray.ResetCluster()
|
|
},
|
|
}
|