From 1d176004014ddc18ea9f3d86ce2593e5b475d183 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Fri, 12 Jan 2024 08:56:06 +0100 Subject: [PATCH] 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 --- internal/cephfs/store/volumeoptions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cephfs/store/volumeoptions.go b/internal/cephfs/store/volumeoptions.go index 569b17ae9..de5b14b1d 100644 --- a/internal/cephfs/store/volumeoptions.go +++ b/internal/cephfs/store/volumeoptions.go @@ -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 }