nfs: add nodeserver within cephcsi

This commit adds nfs nodeserver capable of
mounting nfs volumes, even with pod networking
using NSenter design similar to rbd and cephfs.
NodePublish, NodeUnpublish, NodeGetVolumeStats
and NodeGetCapabilities have been implemented.

The nodeserver implementation has been inspired
from https://github.com/kubernetes-csi/csi-driver-nfs,
which was previously used for mounted cephcsi exported
nfs volumes. The current implementation is also
backward compatible for the previously created
PVCs.

Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Rakshith R
2022-07-26 15:34:57 +05:30
committed by mergify[bot]
parent c2280011d1
commit 3d3c029471
6 changed files with 576 additions and 15 deletions

View File

@ -29,6 +29,7 @@ import (
// DefaultNodeServer stores driver object.
type DefaultNodeServer struct {
csi.UnimplementedNodeServer
Driver *CSIDriver
Type string
Mounter mount.Interface