├── .github ├── issue_template.md └── workflows │ └── ci.yaml ├── .gitignore ├── .gitlab-ci.yml ├── .golangci.yml ├── LICENSE ├── README.md └── device-plugin ├── .clang-format ├── .gitignore ├── .gitlab-ci.yml ├── CHANGELOG.md ├── Dockerfile ├── Makefile ├── README.md ├── build_image.sh ├── cmd └── main.go ├── create_release_package.sh ├── deploys └── helm │ └── device-plugin │ ├── .helmignore │ ├── Chart.yaml │ ├── templates │ ├── _helpers.tpl │ ├── daemonset-device-plugin.yml │ ├── role-binding.yml │ ├── role.yml │ ├── service-account.yml │ └── validation.yml │ └── values.yaml ├── examples ├── cambricon-device-plugin-config.yaml ├── cambricon-device-plugin-daemonset.yaml ├── cambricon-device-plugin-static-pod.yaml └── deployment.yaml ├── go.mod ├── go.sum ├── libs └── linux │ ├── amd64 │ └── .gitkeep │ └── arm64 │ └── .gitkeep ├── pkg ├── allocator │ ├── allocator.go │ ├── allocator_suite_test.go │ ├── board.go │ ├── board_test.go │ ├── default.go │ ├── default_test.go │ ├── spider.go │ └── spider_test.go ├── cndev │ ├── bindings.go │ ├── bindings_test.go │ ├── cndev_dl.go │ ├── include │ │ └── cndev.h │ └── mock │ │ ├── cJSON.c │ │ ├── cJSON.h │ │ ├── cndev.c │ │ └── main.c ├── cntopo │ ├── cntopo.go │ ├── cntopo_dl.go │ ├── include │ │ └── cntopo.h │ ├── mock │ │ └── cntopo.go │ └── test │ │ ├── cJSON.c │ │ ├── cJSON.h │ │ ├── cntopo.c │ │ └── main.c ├── dsmlu │ └── dsmlu.go ├── mlu │ ├── cambricon.go │ ├── cambricon_test.go │ ├── const.go │ ├── options.go │ ├── options_test.go │ ├── podutils.go │ ├── server.go │ ├── server_test.go │ └── testdata │ │ └── config.yaml ├── nodeLabel │ ├── nodelabel.go │ └── nodelabel_test.go └── topology │ └── topology.go └── test ├── Dockerfile ├── cntopo.json ├── device-plugin-integration-test.sh ├── do-test-device-plugin.sh └── mock.json /.github/issue_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/.github/issue_template.md -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | go.work* 2 | .vscode/ 3 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/.golangci.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/README.md -------------------------------------------------------------------------------- /device-plugin/.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/.clang-format -------------------------------------------------------------------------------- /device-plugin/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/.gitignore -------------------------------------------------------------------------------- /device-plugin/.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/.gitlab-ci.yml -------------------------------------------------------------------------------- /device-plugin/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/CHANGELOG.md -------------------------------------------------------------------------------- /device-plugin/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/Dockerfile -------------------------------------------------------------------------------- /device-plugin/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/Makefile -------------------------------------------------------------------------------- /device-plugin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/README.md -------------------------------------------------------------------------------- /device-plugin/build_image.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/build_image.sh -------------------------------------------------------------------------------- /device-plugin/cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/cmd/main.go -------------------------------------------------------------------------------- /device-plugin/create_release_package.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/create_release_package.sh -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/.helmignore -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/Chart.yaml -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/templates/_helpers.tpl -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/templates/daemonset-device-plugin.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/templates/daemonset-device-plugin.yml -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/templates/role-binding.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/templates/role-binding.yml -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/templates/role.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/templates/role.yml -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/templates/service-account.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/templates/service-account.yml -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/templates/validation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/templates/validation.yml -------------------------------------------------------------------------------- /device-plugin/deploys/helm/device-plugin/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/deploys/helm/device-plugin/values.yaml -------------------------------------------------------------------------------- /device-plugin/examples/cambricon-device-plugin-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/examples/cambricon-device-plugin-config.yaml -------------------------------------------------------------------------------- /device-plugin/examples/cambricon-device-plugin-daemonset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/examples/cambricon-device-plugin-daemonset.yaml -------------------------------------------------------------------------------- /device-plugin/examples/cambricon-device-plugin-static-pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/examples/cambricon-device-plugin-static-pod.yaml -------------------------------------------------------------------------------- /device-plugin/examples/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/examples/deployment.yaml -------------------------------------------------------------------------------- /device-plugin/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/go.mod -------------------------------------------------------------------------------- /device-plugin/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/go.sum -------------------------------------------------------------------------------- /device-plugin/libs/linux/amd64/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /device-plugin/libs/linux/arm64/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/allocator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/allocator.go -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/allocator_suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/allocator_suite_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/board.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/board.go -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/board_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/board_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/default.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/default.go -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/default_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/default_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/spider.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/spider.go -------------------------------------------------------------------------------- /device-plugin/pkg/allocator/spider_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/allocator/spider_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/bindings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/bindings.go -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/bindings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/bindings_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/cndev_dl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/cndev_dl.go -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/include/cndev.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/include/cndev.h -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/mock/cJSON.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/mock/cJSON.c -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/mock/cJSON.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/mock/cJSON.h -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/mock/cndev.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/mock/cndev.c -------------------------------------------------------------------------------- /device-plugin/pkg/cndev/mock/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cndev/mock/main.c -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/cntopo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/cntopo.go -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/cntopo_dl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/cntopo_dl.go -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/include/cntopo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/include/cntopo.h -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/mock/cntopo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/mock/cntopo.go -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/test/cJSON.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/test/cJSON.c -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/test/cJSON.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/test/cJSON.h -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/test/cntopo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/test/cntopo.c -------------------------------------------------------------------------------- /device-plugin/pkg/cntopo/test/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/cntopo/test/main.c -------------------------------------------------------------------------------- /device-plugin/pkg/dsmlu/dsmlu.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/dsmlu/dsmlu.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/cambricon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/cambricon.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/cambricon_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/cambricon_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/const.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/options.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/options_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/options_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/podutils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/podutils.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/server.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/server_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/server_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/mlu/testdata/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/mlu/testdata/config.yaml -------------------------------------------------------------------------------- /device-plugin/pkg/nodeLabel/nodelabel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/nodeLabel/nodelabel.go -------------------------------------------------------------------------------- /device-plugin/pkg/nodeLabel/nodelabel_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/nodeLabel/nodelabel_test.go -------------------------------------------------------------------------------- /device-plugin/pkg/topology/topology.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/pkg/topology/topology.go -------------------------------------------------------------------------------- /device-plugin/test/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/test/Dockerfile -------------------------------------------------------------------------------- /device-plugin/test/cntopo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/test/cntopo.json -------------------------------------------------------------------------------- /device-plugin/test/device-plugin-integration-test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/test/device-plugin-integration-test.sh -------------------------------------------------------------------------------- /device-plugin/test/do-test-device-plugin.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/test/do-test-device-plugin.sh -------------------------------------------------------------------------------- /device-plugin/test/mock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cambricon/cambricon-k8s-device-plugin/HEAD/device-plugin/test/mock.json --------------------------------------------------------------------------------