]> git.proxmox.com Git - pve-manager.git/commit
api: ceph: add ceph/cfg path, deprecate ceph/config and ceph/configdb
authorAaron Lauterer <a.lauterer@proxmox.com>
Mon, 20 Mar 2023 10:50:54 +0000 (11:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Mar 2023 14:31:04 +0000 (15:31 +0100)
commit26cf20bc0fa87332cb4aecb832436a71e21ac6e7
tree7f4e470f75bb7a2950bae643963a6e8daccbaa90
parenta066500123dbfa64f72dbc0787095094bc6217ce
api: ceph: add ceph/cfg path, deprecate ceph/config and ceph/configdb

Consolidating the different config paths lets us add more as needed
without polluting our API with too many 'configxxx' endpoints.

The config and configdb paths are renamed under the ceph/cfg path:
* config -> raw (returns the ceph.conf file as is)
* configdb -> db (returns the ceph config db contents)

The old paths are still available and need to be dropped at some point.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Ceph.pm
PVE/API2/Ceph/Cfg.pm [new file with mode: 0644]
PVE/API2/Ceph/Makefile