fix
wangpengfei
2023-06-05 94e73826a2c21e968804706b1955aea239220a1a
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()