mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
cephfs: refactoring for CSI 0.2.0 part 1
This commit is contained in:
parent
06f411bbf3
commit
66c16e35e6
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,7 +5,7 @@
|
||||
|
||||
# docker build
|
||||
/deploy/rbd/docker/rbdplugin
|
||||
/deploy/cephfs/docker/rbdplugin
|
||||
/deploy/cephfs/docker/cephfsplugin
|
||||
|
||||
# Emacs save files
|
||||
*~
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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)"
|
||||
|
@ -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)"
|
||||
|
@ -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)"
|
||||
|
@ -41,7 +41,7 @@ type cephfsDriver struct {
|
||||
var (
|
||||
driver *cephfsDriver
|
||||
version = csi.Version{
|
||||
Minor: 1,
|
||||
Minor: 2,
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user