Skip to content

Commit

Permalink
Merge pull request #982 from huww98/rm-local
Browse files Browse the repository at this point in the history
move local driver into seperate repository
  • Loading branch information
k8s-ci-robot authored Mar 5, 2024
2 parents 073bfc4 + 42fdb56 commit 1bf3856
Show file tree
Hide file tree
Showing 411 changed files with 7 additions and 39,332 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ OSS CSI Plugin support OSS bucket mount, but does not support provision volume.
More detail information pls refer to [OSS](./docs/oss.md).


### LVM CSI Plugin

LVM CSI Plugin support LVM volume provision and mount. LVM volume is a type of local storage and should not be used in high availability scenario.

More detail information pls refer to [LVM](./docs/lvm.md).


## Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the [community page](https://kubernetes.io/community/).
Expand Down
25 changes: 0 additions & 25 deletions build/build-local.sh

This file was deleted.

25 changes: 0 additions & 25 deletions build/build-lvm.sh

This file was deleted.

25 changes: 0 additions & 25 deletions build/build-mem.sh

This file was deleted.

13 changes: 0 additions & 13 deletions build/local/Dockerfile

This file was deleted.

33 changes: 0 additions & 33 deletions build/local/entrypoint.sh

This file was deleted.

Binary file removed build/local/nsenter
Binary file not shown.
Binary file removed build/zoneinfo.zip
Binary file not shown.
25 changes: 0 additions & 25 deletions examples/local/lvm/deploy.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions examples/local/lvm/pvc.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions examples/local/lvm/storageclass.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions examples/local/pmem/deploy.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions examples/local/pmem/pvc-direct.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions examples/local/pmem/pvc-lvm.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions examples/local/pmem/storageclass-direct.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions examples/local/pmem/storageclass-lvm.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions examples/local/quotapath/sc.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/dbfs"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/disk"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/ens"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/local"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/metric"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/nas"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/om"
Expand Down Expand Up @@ -72,14 +71,6 @@ const (
TypePluginOSS = "ossplugin.csi.alibabacloud.com"
// TypePluginCPFS CPFS type plugin
TypePluginCPFS = "cpfsplugin.csi.alibabacloud.com"
// TypePluginLVM LVM type plugin
TypePluginLVM = "lvmplugin.csi.alibabacloud.com"
// TypePluginMEM memory type plugin
TypePluginMEM = "memplugin.csi.alibabacloud.com"
// TypePluginLOCAL local type plugin
TypePluginLOCAL = "localplugin.csi.alibabacloud.com"
// TypePluginYODA local type plugin
TypePluginYODA = "yodaplugin.csi.alibabacloud.com"
// TypePluginENS ENS type plugins
TypePluginENS = "ensplugin.csi.alibabacloud.com"
// TypePluginPOV POV type plugins
Expand Down Expand Up @@ -171,9 +162,6 @@ func main() {
endPointName := replaceCsiEndpoint(driverName, *endpoint)
log.Infof("CSI endpoint for driver %s: %s", driverName, endPointName)

if driverName == TypePluginYODA {
driverName = TypePluginLOCAL
}
if err := createPersistentStorage(path.Join(utils.KubeletRootDir, "/csi-plugins", driverName, "controller")); err != nil {
log.Errorf("failed to create persistent storage for controller: %v", err)
os.Exit(1)
Expand Down Expand Up @@ -208,12 +196,6 @@ func main() {
driver := cpfs.NewDriver(*nodeID, endPoint)
driver.Run()
}(endPointName)
case TypePluginLOCAL:
go func(endPoint string) {
defer wg.Done()
driver := local.NewDriver(*nodeID, endPoint)
driver.Run()
}(endPointName)
case TypePluginDBFS:
go func(endPoint string) {
defer wg.Done()
Expand Down
Loading

0 comments on commit 1bf3856

Please sign in to comment.