chore(clustertool): remove SCALE related features

This commit is contained in:
Kjeld Schouten
2025-04-07 19:34:19 +02:00
parent 82172ef42b
commit 8d58c9544a
5 changed files with 0 additions and 577 deletions
-27
View File
@@ -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)
}
-26
View File
@@ -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)
}
-30
View File
@@ -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)
}