| @@ -1,7 +1,7 @@ | |||||
| package main | package main | ||||
| import ( | 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" | "PCM/adaptor/container_api_adaptor/huawei/pkg/auth/aksk" | ||||
| "fmt" | "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") | //fmt.Println("start to network created") | ||||
| @@ -39,12 +39,12 @@ func main() { | |||||
| //fmt.Println("deployment created") | //fmt.Println("deployment created") | ||||
| //创建pod | //创建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 | //删除deployment | ||||
| //fmt.Println("start to delete deployment") | //fmt.Println("start to delete deployment") | ||||
| @@ -29,7 +29,7 @@ CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code- | |||||
| export CLIENTSET_PKG_NAME=networking.cci.io | export CLIENTSET_PKG_NAME=networking.cci.io | ||||
| export CLIENTSET_NAME_VERSIONED=v1beta1 | export CLIENTSET_NAME_VERSIONED=v1beta1 | ||||
| "${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client" \ | "${CODEGEN_PKG}"/generate-groups.sh "deepcopy,client" \ | ||||
| PCM/huawei/pkg/client PCM/huawei/pkg/apis \ | |||||
| PCM/adaptor/container_api_adaptor/huawei/pkg/client PCM/adaptor/container_api_adaptor/huawei/pkg/apis \ | |||||
| networking.cci.io:v1beta1 \ | networking.cci.io:v1beta1 \ | ||||
| --output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \ | --output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \ | ||||
| --go-header-file "${SCRIPT_ROOT}"/hack/boilerplate.go.txt | --go-header-file "${SCRIPT_ROOT}"/hack/boilerplate.go.txt | ||||
| @@ -19,9 +19,9 @@ limitations under the License. | |||||
| package fake | package fake | ||||
| import ( | import ( | ||||
| clientset "PCM/huawei/pkg/client/networking.cci.io/v1beta1" | |||||
| networkingcciv1beta1 "PCM/huawei/pkg/client/networking.cci.io/v1beta1/typed/networking.cci.io/v1beta1" | |||||
| fakenetworkingcciv1beta1 "PCM/huawei/pkg/client/networking.cci.io/v1beta1/typed/networking.cci.io/v1beta1/fake" | |||||
| clientset "PCM/adaptor/container_api_adaptor/huawei/pkg/client/networking.cci.io/v1beta1" | |||||
| networkingcciv1beta1 "PCM/adaptor/container_api_adaptor/huawei/pkg/client/networking.cci.io/v1beta1/typed/networking.cci.io/v1beta1" | |||||
| fakenetworkingcciv1beta1 "PCM/adaptor/container_api_adaptor/huawei/pkg/client/networking.cci.io/v1beta1/typed/networking.cci.io/v1beta1/fake" | |||||
| "k8s.io/apimachinery/pkg/runtime" | "k8s.io/apimachinery/pkg/runtime" | ||||
| "k8s.io/apimachinery/pkg/watch" | "k8s.io/apimachinery/pkg/watch" | ||||
| "k8s.io/client-go/discovery" | "k8s.io/client-go/discovery" | ||||
| @@ -19,7 +19,7 @@ limitations under the License. | |||||
| package fake | package fake | ||||
| import ( | import ( | ||||
| networkingcciv1beta1 "PCM/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| networkingcciv1beta1 "PCM/adaptor/container_api_adaptor/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| runtime "k8s.io/apimachinery/pkg/runtime" | runtime "k8s.io/apimachinery/pkg/runtime" | ||||
| schema "k8s.io/apimachinery/pkg/runtime/schema" | schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| @@ -19,7 +19,7 @@ limitations under the License. | |||||
| package scheme | package scheme | ||||
| import ( | import ( | ||||
| networkingcciv1beta1 "PCM/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| networkingcciv1beta1 "PCM/adaptor/container_api_adaptor/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| runtime "k8s.io/apimachinery/pkg/runtime" | runtime "k8s.io/apimachinery/pkg/runtime" | ||||
| schema "k8s.io/apimachinery/pkg/runtime/schema" | schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| @@ -19,7 +19,7 @@ limitations under the License. | |||||
| package fake | package fake | ||||
| import ( | import ( | ||||
| v1beta1 "PCM/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| v1beta1 "PCM/adaptor/container_api_adaptor/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| labels "k8s.io/apimachinery/pkg/labels" | labels "k8s.io/apimachinery/pkg/labels" | ||||
| schema "k8s.io/apimachinery/pkg/runtime/schema" | schema "k8s.io/apimachinery/pkg/runtime/schema" | ||||
| @@ -19,7 +19,7 @@ limitations under the License. | |||||
| package fake | package fake | ||||
| import ( | import ( | ||||
| v1beta1 "PCM/huawei/pkg/client/networking.cci.io/v1beta1/typed/networking.cci.io/v1beta1" | |||||
| v1beta1 "PCM/adaptor/container_api_adaptor/huawei/pkg/client/networking.cci.io/v1beta1/typed/networking.cci.io/v1beta1" | |||||
| rest "k8s.io/client-go/rest" | rest "k8s.io/client-go/rest" | ||||
| testing "k8s.io/client-go/testing" | testing "k8s.io/client-go/testing" | ||||
| ) | ) | ||||
| @@ -21,8 +21,8 @@ package v1beta1 | |||||
| import ( | import ( | ||||
| "time" | "time" | ||||
| v1beta1 "PCM/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| scheme "PCM/huawei/pkg/client/networking.cci.io/v1beta1/scheme" | |||||
| v1beta1 "PCM/adaptor/container_api_adaptor/huawei/pkg/apis/networking.cci.io/v1beta1" | |||||
| scheme "PCM/adaptor/container_api_adaptor/huawei/pkg/client/networking.cci.io/v1beta1/scheme" | |||||
| v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||||
| types "k8s.io/apimachinery/pkg/types" | types "k8s.io/apimachinery/pkg/types" | ||||
| watch "k8s.io/apimachinery/pkg/watch" | watch "k8s.io/apimachinery/pkg/watch" | ||||