Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CSI-275): version of NFS is only set to V4 during NFS permission …
…creation (#354) ### TL;DR Enhanced NFS permission handling and version matching in the WekaFS API client. ### What changed? - Implemented a `Matches` method for `NfsPermission` to compare permissions. - Modified `FindNfsPermissionsByFilter` to use the new `Matches` method. - Updated `EnsureNfsPermission` to support both NFSv3 and NFSv4 by default. ### How to test? 1. Create NFS permission having both versions V3 and V4 set on WEKA Cluster. 2. Attempt to provision a PVC via NFS transport 3. Ensure that provisioning succeeds ### Why make this change? This change improves the flexibility and accuracy of NFS permission handling. If a permission exists that allows access via both NFSv3 and NFSv4 (and it matches by all the rest of parameters), the CSI plugin will recognize it and not try to create a duplicate permission
- Loading branch information