|
|
|
@@ -1,7 +1,7 @@ |
|
|
|
package main |
|
|
|
|
|
|
|
import ( |
|
|
|
"PCM/adaptor/container_api_adaptor/huawei/demos/pod" |
|
|
|
"PCM/adaptor/container_api_adaptor/huawei/demos/namespace" |
|
|
|
"PCM/adaptor/container_api_adaptor/huawei/pkg/auth/aksk" |
|
|
|
"fmt" |
|
|
|
) |
|
|
|
@@ -16,12 +16,12 @@ func main() { |
|
|
|
} |
|
|
|
|
|
|
|
//创建命名空间 |
|
|
|
//fmt.Println("start to namespace created") |
|
|
|
//_, err = namespace.CreateNamespace(cs) |
|
|
|
//if err != nil { |
|
|
|
// panic(err) |
|
|
|
//} |
|
|
|
//fmt.Println("namespace created") |
|
|
|
fmt.Println("start to namespace created") |
|
|
|
_, err = namespace.CreateNamespace(cs) |
|
|
|
if err != nil { |
|
|
|
panic(err) |
|
|
|
} |
|
|
|
fmt.Println("namespace created") |
|
|
|
|
|
|
|
//创建网络 |
|
|
|
//fmt.Println("start to network created") |
|
|
|
@@ -39,12 +39,12 @@ func main() { |
|
|
|
//fmt.Println("deployment created") |
|
|
|
|
|
|
|
//创建pod |
|
|
|
fmt.Println("start to create pod") |
|
|
|
_, err = pod.CreatePod(cs) |
|
|
|
if err != nil { |
|
|
|
panic(err) |
|
|
|
} |
|
|
|
fmt.Println("pod created") |
|
|
|
//fmt.Println("start to create pod") |
|
|
|
//_, err = pod.CreatePod(cs) |
|
|
|
//if err != nil { |
|
|
|
// panic(err) |
|
|
|
//} |
|
|
|
//fmt.Println("pod created") |
|
|
|
|
|
|
|
//删除deployment |
|
|
|
//fmt.Println("start to delete deployment") |
|
|
|
|