This commit is contained in:
mr
2026-03-12 09:20:48 +01:00
parent da9a7d3a49
commit e2399c6853
6 changed files with 71 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ type KubernetesTools struct {
}
func NewKubernetesTool() (Tool, error) {
fmt.Println(conf.GetConfig().KubeCA, conf.GetConfig().KubeCert, conf.GetConfig().KubeData)
// Load Kubernetes config (from ~/.kube/config)
config := &rest.Config{
Host: conf.GetConfig().KubeHost + ":" + conf.GetConfig().KubePort,