in cmd/nfsplugin/main.go [92:114]
func handle() {
driverOptions := nfs.DriverOptions{
NodeID: *nodeID,
DriverName: *driverName,
Endpoint: *endpoint,
MountPermissions: *mountPermissions,
WorkingMountDir: *workingMountDir,
DefaultOnDeletePolicy: *defaultOnDeletePolicy,
VolStatsCacheExpireInMinutes: *volStatsCacheExpireInMinutes,
RunControllerServer: *runControllerServer,
RunNodeServer: *runNodeServer,
}
if *runControllerServer && *ipAddresses == "" {
klog.Fatal("NFS LB CSI Driver controller requires atleast one valid IP address for the target NFS server(s)")
return
}
ipList := strings.Split(*ipAddresses, ",")
driverOptions.IPList = ipList
d := nfs.NewDriver(&driverOptions)
d.Run(false)
}