fix(clustertool): fix kubectl logging error, add kubeconfig command and fix some command docs
This commit is contained in:
@@ -6,7 +6,9 @@ import (
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/truecharts/public/clustertool/pkg/gencmd"
|
||||
"github.com/truecharts/public/clustertool/pkg/initfiles"
|
||||
"github.com/truecharts/public/clustertool/pkg/sops"
|
||||
"github.com/truecharts/public/clustertool/pkg/talassist"
|
||||
)
|
||||
|
||||
var advResetLongHelp = strings.TrimSpace(`
|
||||
@@ -16,7 +18,7 @@ var advResetLongHelp = strings.TrimSpace(`
|
||||
var reset = &cobra.Command{
|
||||
Use: "reset",
|
||||
Short: "Reset Talos Nodes and Kubernetes",
|
||||
Example: "clustertool adv reset <NodeIP>",
|
||||
Example: "clustertool talos reset <NodeIP>",
|
||||
Long: advResetLongHelp,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
var extraArgs []string
|
||||
@@ -35,6 +37,8 @@ var reset = &cobra.Command{
|
||||
if err := sops.DecryptFiles(); err != nil {
|
||||
log.Info().Msgf("Error decrypting files: %v\n", err)
|
||||
}
|
||||
initfiles.LoadTalEnv(false)
|
||||
talassist.LoadTalConfig()
|
||||
|
||||
log.Info().Msg("Running Cluster node Reset")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user