chore(clustertool): remove SCALE related features
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var scaleLongHelp = strings.TrimSpace(`
|
||||
These are all commands that are exclusively intended to migrate away from TrueNAS SCALE Kubernetes Apps to a normal kubernets cluster.
|
||||
|
||||
They will all, at a later date, be removed.
|
||||
|
||||
`)
|
||||
|
||||
var scaleCmd = &cobra.Command{
|
||||
Use: "scale",
|
||||
Short: "Commands for handling TrueNAS SCALE",
|
||||
Example: "clustertool scale export",
|
||||
Long: advLongHelp,
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
}
|
||||
|
||||
func init() {
|
||||
RootCmd.AddCommand(scaleCmd)
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/truecharts/public/clustertool/pkg/scale"
|
||||
)
|
||||
|
||||
var scaleExportLongHelp = strings.TrimSpace(`
|
||||
|
||||
`)
|
||||
|
||||
var scaleexport = &cobra.Command{
|
||||
Use: "export",
|
||||
Short: "Export SCALE Apps to file",
|
||||
Example: "clustertool scale export",
|
||||
Long: scaleExportLongHelp,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
scale.ExportApps()
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
scaleCmd.AddCommand(scaleexport)
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/truecharts/public/clustertool/pkg/scale"
|
||||
)
|
||||
|
||||
var scaleMigrateLongHelp = strings.TrimSpace(`
|
||||
|
||||
`)
|
||||
|
||||
var scalemigrate = &cobra.Command{
|
||||
Use: "migrate",
|
||||
Short: "Migrate exported SCALE Apps to the Talos Cluster",
|
||||
Example: "clustertool scale migrate",
|
||||
Long: scaleMigrateLongHelp,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
err := scale.ProcessJSONFiles("./truenas_exports")
|
||||
if err != nil {
|
||||
log.Info().Msgf("Error: %v", err)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
scaleCmd.AddCommand(scalemigrate)
|
||||
}
|
||||
Reference in New Issue
Block a user