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>
This commit is contained in:
Madhu Rajanna 2024-01-12 08:56:06 +01:00 committed by mergify[bot]
parent 3bf5c0e478
commit 1d17600401

View File

@ -697,7 +697,7 @@ func NewVolumeOptionsFromStaticVolume(
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
}