fix some go issues

This commit is contained in:
Kjeld Schouten
2024-10-17 12:56:56 +02:00
parent 54e019763c
commit 8b691218f1
57 changed files with 103 additions and 103 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ import (
talhelperCfg "github.com/budimanjojo/talhelper/v3/pkg/config"
"github.com/budimanjojo/talhelper/v3/pkg/generate"
"github.com/truecharts/private/clustertool/embed"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/private/clustertool/pkg/initfiles"
"github.com/truecharts/public/clustertool/embed"
"github.com/truecharts/public/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/pkg/initfiles"
)
func GenApply(node string, extraFlags []string) []string {
+6 -6
View File
@@ -12,12 +12,12 @@ import (
talhelperCfg "github.com/budimanjojo/talhelper/v3/pkg/config"
"github.com/budimanjojo/talhelper/v3/pkg/generate"
"github.com/truecharts/private/clustertool/embed"
"github.com/truecharts/private/clustertool/pkg/fluxhandler"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/private/clustertool/pkg/kubectlcmds"
"github.com/truecharts/private/clustertool/pkg/nodestatus"
"github.com/truecharts/private/clustertool/pkg/sops"
"github.com/truecharts/public/clustertool/embed"
"github.com/truecharts/public/clustertool/pkg/fluxhandler"
"github.com/truecharts/public/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/pkg/kubectlcmds"
"github.com/truecharts/public/clustertool/pkg/nodestatus"
"github.com/truecharts/public/clustertool/pkg/sops"
)
var HelmRepos map[string]*fluxhandler.HelmRepo
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"time"
"github.com/rs/zerolog/log"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/private/clustertool/pkg/nodestatus"
"github.com/truecharts/public/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/pkg/nodestatus"
)
func ExecCmd(cmd string) {
+3 -3
View File
@@ -17,9 +17,9 @@ import (
"github.com/fatih/color"
sideroConfig "github.com/siderolabs/talos/pkg/machinery/config"
"github.com/siderolabs/talos/pkg/machinery/config/generate/secrets"
"github.com/truecharts/private/clustertool/pkg/fluxhandler"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/private/clustertool/pkg/initfiles"
"github.com/truecharts/public/clustertool/pkg/fluxhandler"
"github.com/truecharts/public/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/pkg/initfiles"
"gopkg.in/yaml.v3"
)
+2 -2
View File
@@ -1,8 +1,8 @@
package gencmd
import (
"github.com/truecharts/private/clustertool/embed"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/embed"
"github.com/truecharts/public/clustertool/pkg/helper"
)
func GenHealth(node string) string {
+2 -2
View File
@@ -1,8 +1,8 @@
package gencmd
import (
"github.com/truecharts/private/clustertool/embed"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/embed"
"github.com/truecharts/public/clustertool/pkg/helper"
)
func GenKubeConfig(node string) string {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
talhelperCfg "github.com/budimanjojo/talhelper/v3/pkg/config"
"github.com/budimanjojo/talhelper/v3/pkg/generate"
"github.com/truecharts/private/clustertool/embed"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/embed"
"github.com/truecharts/public/clustertool/pkg/helper"
)
func GenReset(node string, extraFlags []string) []string {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
talhelperCfg "github.com/budimanjojo/talhelper/v3/pkg/config"
"github.com/budimanjojo/talhelper/v3/pkg/generate"
"github.com/truecharts/private/clustertool/embed"
"github.com/truecharts/private/clustertool/pkg/helper"
"github.com/truecharts/public/clustertool/embed"
"github.com/truecharts/public/clustertool/pkg/helper"
)
func GenUpgrade(node string, extraFlags []string) []string {