cephfs: make fsname as optional for static PVC

consider fsName optional for static volume
as it is not required to be set during mount
operation with fuse and kernel client.

fixes: #4311

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 1d17600401)
This commit is contained in:
Madhu Rajanna 2024-01-12 08:56:06 +01:00 committed by mergify[bot]
parent 445c6e3638
commit 86400ccb44

View File

@ -696,7 +696,7 @@ func NewVolumeOptionsFromStaticVolume(
return nil, nil, err return nil, nil, err
} }
if err = extractOption(&opts.FsName, "fsName", options); err != nil { if err = extractOptionalOption(&opts.FsName, "fsName", options); err != nil {
return nil, nil, err return nil, nil, err
} }