Skip to content

Commit

Permalink
cephfs: make fsname as optional for static PVC
Browse files Browse the repository at this point in the history
consider fsName as optional for static volume
as it is not required to be set duing mount
operation with fuse and kernel client.

fixes: ceph#4311

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Jan 12, 2024
1 parent 3bf5c0e commit 692e1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cephfs/store/volumeoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 692e1e2

Please sign in to comment.