From 8d94bb910c55d0da24c641bf38c2b0e5d8950f2c Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期三, 24 五月 2023 15:20:11 +0800
Subject: [PATCH] 增加自动安装rancher、docker和kubectl和创建集群相关函数

---
 src/main/main.go |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/main/main.go b/src/main/main.go
index c3407ea..c788412 100644
--- a/src/main/main.go
+++ b/src/main/main.go
@@ -8,10 +8,11 @@
 	"path/filepath"
 	"time"
 
-	"../create"
-	"../delete"
 	"k8s.io/client-go/kubernetes"
 	"k8s.io/client-go/tools/clientcmd"
+
+	"basic.com/aps/aps_deploy.git/src/create"
+	"basic.com/aps/aps_deploy.git/src/delete"
 )
 
 var (
@@ -144,3 +145,11 @@
 	}
 
 }
+// homeDir 鑾峰彇褰撳墠鐢ㄦ埛鐨勫鐩綍璺緞
+func homeDir() string {
+        if h := os.Getenv("HOME"); h != "" {
+                return h
+        }
+        return os.Getenv("USERPROFILE") // Windows 鐜涓嬭幏鍙栫敤鎴风洰褰�
+}
+

--
Gitblit v1.8.0