INNER CODE UNIT · Go
handle
kubernetes-csi/csi-driver-nfs · cmd/nfsplugin/main.go:60
func handle() {
driverOptions := nfs.DriverOptions{
NodeID: *nodeID,
DriverName: *driverName,
Endpoint: *endpoint,
MountPermissions: *mountPermissions,
WorkingMountDir: *workingMountDir,
DefaultOnDeletePolicy: *defaultOnDeletePolicy,
VolStatsCacheExpireInMinutes: *volStatsCacheExpireInMinutes,
RemoveArchivedVolumePath: *removeArchivedVolumePath,
UseTarCommandInSnapshot: *useTarCommandInSnapshot,
EnableSnapshotCompression: *enableSnapshotCompression,
MaxSnapshotArchiveSize: *maxSnapshotArchiveSize,
MaxSnapshotFileSize: *maxSnapshotFileSize,
MaxSnapshotFiles: *maxSnapshotFiles,
}
d := nfs.NewDriver(&driverOptions)
d.Run(false)