cephfs: volumes are now created for separate ceph users with limited access to fs

Uses a slightly modified version of https://github.com/kubernetes-incubator/external-storage/blob/master/ceph/cephfs/cephfs_provisioner/cephfs_provisioner.py
This should be rewritten properly in Go, but for it works for now - for demonstration purposes

TODO:
* readOnly is not taken into account
* controllerServer.DeleteVolume does nothing
This commit is contained in:
gman
2018-03-09 17:05:19 +01:00
parent 3dc810a75b
commit 06f411bbf3
9 changed files with 452 additions and 114 deletions

View File

@ -5,9 +5,10 @@ LABEL description="CephFS CSI Plugin"
ENV CEPH_VERSION "luminous"
RUN apt-get update && \
apt-get install -y ceph-fuse attr && \
apt-get autoremove
apt-get install -y ceph-common ceph-fuse && \
rm -rf /var/lib/apt/lists/*
COPY cephfsplugin /cephfsplugin
RUN chmod +x /cephfsplugin
COPY cephfs_provisioner.py /cephfs_provisioner.py
RUN chmod +x /cephfsplugin && chmod +x /cephfs_provisioner.py
ENTRYPOINT ["/cephfsplugin"]