]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: added missing documentation on "pubsub" in rgw_enable_apis 39382/head
authorGaurav Sitlani <gauravsitlani@riseup.net>
Tue, 9 Feb 2021 19:24:41 +0000 (00:54 +0530)
committerGaurav Sitlani <gauravsitlani@riseup.net>
Tue, 16 Feb 2021 17:43:14 +0000 (23:13 +0530)
Fixes: https://tracker.ceph.com/issues/49203
Adding support for the term "notifications" in rgw_enable_apis

Signed-off-by: Gaurav Sitlani <gauravsitlani@riseup.net>
doc/radosgw/config-ref.rst
doc/radosgw/notifications.rst
doc/radosgw/pubsub-module.rst
src/common/options.cc
src/rgw/rgw_main.cc

index 4426b3563d117aeff2c7e70a5c5789480f691869..e9d419fd3c064795f080a38962b6f9694ea3e457 100644 (file)
@@ -40,7 +40,7 @@ instances or all radosgw-admin options can be put into the ``[global]`` or the
                         participate in a `multi-site <../multisite>`_
                         configuration.
 :Type: String
-:Default: ``s3, swift, swift_auth, admin`` All APIs.
+:Default: ``s3, s3website, swift, swift_auth, admin, sts, iam, notifications`` All APIs.
 
 
 ``rgw_cache_enabled``
index 3747af34a79dacedcfcf43ab6343a69453e9f832..c159182aa915a12bb837194fdc8d0ed2e524c429 100644 (file)
@@ -29,6 +29,7 @@ mechanism. This API is similar to the one defined as the S3-compatible API of th
 
    S3 Bucket Notification Compatibility <s3-notification-compatibility>
 
+.. note:: To enable bucket notifications API, the `rgw_enable_apis` configuration parameter should contain: "notifications".
 
 Notification Reliability
 ------------------------
index 36838a672374a9c742da4865bf79ab73b645134e..1e77c3f6f5d19eb24f88b7cf836a7a2ce8b1a918 100644 (file)
@@ -38,6 +38,8 @@ be accessed directly, but need to be pulled and acked using the new REST API.
 
    S3 Bucket Notification Compatibility <s3-notification-compatibility>
 
+.. note:: To enable bucket notifications API, the `rgw_enable_apis` configuration parameter should contain: "notifications".
+
 PubSub Zone Configuration
 -------------------------
 
index 3412f92d994c51149edb1a468a52fa3782bd05ad..62bafdb510f102c5c6df233cb22a91794c3f2738 100644 (file)
@@ -5721,7 +5721,7 @@ std::vector<Option> get_rgw_options() {
         "will be located in the path that is specified here. "),
 
     Option("rgw_enable_apis", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-    .set_default("s3, s3website, swift, swift_auth, admin, sts, iam, pubsub")
+    .set_default("s3, s3website, swift, swift_auth, admin, sts, iam, notifications")
     .set_description("A list of set of RESTful APIs that rgw handles."),
 
     Option("rgw_cache_enabled", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
index ccc70294882e7271545d3923d703868e581099e7..9023513cb943b8caeb8086c61f19c75efc0c1392 100644 (file)
@@ -381,7 +381,7 @@ int radosgw_Main(int argc, const char **argv)
   const bool s3website_enabled = apis_map.count("s3website") > 0;
   const bool sts_enabled = apis_map.count("sts") > 0;
   const bool iam_enabled = apis_map.count("iam") > 0;
-  const bool pubsub_enabled = apis_map.count("pubsub") > 0;
+  const bool pubsub_enabled = apis_map.count("pubsub") > 0 || apis_map.count("notifications") > 0;
   // Swift API entrypoint could placed in the root instead of S3
   const bool swift_at_root = g_conf()->rgw_swift_url_prefix == "/";
   if (apis_map.count("s3") > 0 || s3website_enabled) {