CSIbuilder is an SDK for building Kubernetes CSI Driver.
Similar to Kubebuilder, CSIbuilder does not exist as an example to copy-paste, but instead provides powerful libraries and tools to simplify building and publishing Kubernetes CSI Driver from scratch.
It is strongly recommended that you use a released version. Release binaries are available on the releases page.
Install CSIbuilder:
# download csibuilder and install locally.
curl -L -o csibuilder.tar https://github.com/zwwhdls/csibuilder/releases/download/v0.1.0/csibuilder-darwin-amd64.tar
tar -zxvf csibuilder.tar && chmod +x csibuilder && mv csibuilder /usr/local/bin/
Only two steps to create a CSI Driver project:
- initialize a project
# init your project
export GO111MODULE=on
mkdir $GOPATH/src/csi-hdls
cd $GOPATH/src/csi-hdls
# init csi repo
go env -w GOSUMDB=sum.golang.google.cn
csibuilder init --repo hdls --owner "zwwhdls"
- create a csi driver
# create csi
csibuilder create --csi hdls