cephfs: refactoring for CSI 0.2.0 part 1

This commit is contained in:
gman 2018-03-13 10:25:50 +01:00
parent 06f411bbf3
commit 66c16e35e6
7 changed files with 9 additions and 8 deletions

2
.gitignore vendored
View File

@ -5,7 +5,7 @@
# docker build
/deploy/rbd/docker/rbdplugin
/deploy/cephfs/docker/rbdplugin
/deploy/cephfs/docker/cephfsplugin
# Emacs save files
*~

View File

@ -21,7 +21,8 @@ import (
"os"
"path"
"github.com/ceph/ceph-csi/pkg/cephfs"
// "github.com/ceph/ceph-csi/pkg/cephfs"
"github.com/gman0/ceph-csi/pkg/cephfs"
"github.com/golang/glog"
)

View File

@ -49,7 +49,7 @@ spec:
hostNetwork: true
containers:
- name: driver-registrar
image: quay.io/k8scsi/driver-registrar:latest
image: quay.io/k8scsi/driver-registrar:v0.2.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"

View File

@ -66,7 +66,7 @@ spec:
serviceAccount: csi-attacher
containers:
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:latest
image: quay.io/k8scsi/csi-attacher:v0.2.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"

View File

@ -75,7 +75,7 @@ spec:
serviceAccount: csi-provisioner
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:latest
image: quay.io/k8scsi/csi-provisioner:v0.2.0
args:
- "--provisioner=cephfsplugin"
- "--csi-address=$(ADDRESS)"

View File

@ -41,7 +41,7 @@ type cephfsDriver struct {
var (
driver *cephfsDriver
version = csi.Version{
Minor: 1,
Minor: 2,
}
)

View File

@ -75,9 +75,9 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
glog.V(4).Infof("cephfs: volume created at %s", vol.Root)
return &csi.CreateVolumeResponse{
VolumeInfo: &csi.VolumeInfo{
Volume: &csi.Volume{
Id: volId.id,
CapacityBytes: uint64(volSz),
CapacityBytes: volSz,
Attributes: vol.makeMap(),
},
}, nil