]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: Add RGWStorage resource class and update Share to support RGW
authorShweta Sodani <ssodani@redhat.com>
Mon, 20 Apr 2026 09:03:15 +0000 (14:33 +0530)
committerShweta Sodani <Shweta.Sodani@ibm.com>
Thu, 25 Jun 2026 16:19:45 +0000 (21:49 +0530)
commit6da208dec17c6f325f5d2711d7ca2dd3a34f7d86
tree33e3f8349587272a66c13121a3d5a8db4def697a
parenteaf9d8c88188ce32ed2356a8cc0c8915fd597f37
mgr/smb: Add RGWStorage resource class and update Share to support RGW

- Add RGWStorage component class for RGW bucket storage backend
- Include fields: bucket, user_id, access_key_id, secret_access_key
- Add password conversion support for credentials
- Update Share class to accept optional rgw field and added convert
  defination
- Update Share validation to support both cephfs and rgw backends
- Ensure exactly one storage backend (cephfs or rgw) is specified

This is the first step in implementing RGW storage support for SMB
shares, similar to the existing NFS RGW export functionality.

Signed-off-by: Shweta Sodani <ssodani@redhat.com>
src/pybind/mgr/smb/resources.py