Skip to content

Commit

Permalink
move local driver into seperate repository
Browse files Browse the repository at this point in the history
local CSI driver is not directly related to Alibaba Cloud.

also include some cleanups of previously removed LVM/MEM driver.
  • Loading branch information
huww98 committed Feb 26, 2024
1 parent 97a43bd commit 3e6a81a
Show file tree
Hide file tree
Showing 409 changed files with 0 additions and 39,094 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 3e6a81a

Please sign in to comment.