Closed Elegant996 closed 5 years ago
This looks pretty cool. Is the scope of this setting per class then?
Sorry, I was busy after I submitted this. Yes, the scope of this is per class due to it now being offered as an option by StorageClass
. This change was made to the StorageClass
back in November and replaces the initial design proposal.
The only workaround I can suggest for those that require different mount parameters for different shares would be to deploy another provisioner with the required options and use it instead.
I myself only needed this for basics such as hard
, nfsvers=4.1
, and noatime
on all my shares.
Thanks!
Looks good to me, I don't see any problems running multiple storage class / freenas-provisioner if need be.
mountOptions
was recently deprecated and support was added throughStorageClass.mountOptions
upstream. In order to support this functionality, two dependencies must be updated forPersistentVolumeSpec
.