kube-forge v2: embede python with ansible (kubespray) and cobra as cli building tool

This commit is contained in:
2025-06-22 00:37:47 +03:00
parent c2df2abc78
commit 4142a9db61
830 changed files with 874 additions and 2047 deletions

View File

@@ -4,7 +4,6 @@ import (
"io"
"log"
"os"
"path/filepath"
"time"
helm_client "github.com/mittwald/go-helm-client"
@@ -30,7 +29,7 @@ type ChartSettings struct {
func GetHelmClient(namespace string) helm_client.Client {
config := GetConfig()
file, err := os.Open(filepath.Join(config.WorkDir, config.KubeconfigFile))
file, err := os.Open(config.KubeconfigFile)
if err != nil {
log.Fatalf("failed to open file: %s", err)
}
@@ -46,7 +45,7 @@ func GetHelmClient(namespace string) helm_client.Client {
RepositoryConfig: "/tmp/.helmrepo",
Debug: true,
Linting: true, // Change this to false if you don't want linting.
DebugLog: func(format string, v ...interface{}) {
DebugLog: func(format string, v ...any) {
// Change this to your own logger. Default is 'log.Printf(format, v...)'.
},
},