cheliequan
2023-05-31 dabbe4c25eae2c46f861ab4fc23b837534a94603
src/k8s/delete.go
@@ -13,14 +13,11 @@
   "k8s.io/client-go/tools/clientcmd"
)
var (
   replicas      int32 = 3
   port          int32 = 9081
   namespaces          = []string{"guangsheng", "geruimi", "tongsheng"}
   usedNodePorts       = make(map[int32]bool)
)
func main() {
func delete_test() {
        var (
           namespaces          = []string{"guangsheng", "geruimi", "tongsheng"}
        )
   // 配置 Kubernetes 集群的 kubeconfig 路径
   kubeconfig := flag.String("kubeconfig", filepath.Join(util.HomeDir(), ".kube", "config"), "kubeconfig file")
   flag.Parse()