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 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 1d17600)
  • Loading branch information
Madhu-1 authored and mergify[bot] committed Feb 1, 2024
1 parent 445c6e3 commit 86400cc
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 @@ -696,7 +696,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 86400cc

Please sign in to comment.