]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: expect pg_num_max property for pools
authorSage Weil <sage@newdream.net>
Mon, 22 Nov 2021 21:42:46 +0000 (16:42 -0500)
committerSage Weil <sage@newdream.net>
Mon, 3 Jan 2022 19:12:54 +0000 (14:12 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/dashboard/controllers/pool.py
src/pybind/mgr/dashboard/openapi.yaml

index e2717e6fd47734d35f6eb3f0f40ded201b023fc4..386d584404c88ce64ab781c043eecfcc7db572cf 100644 (file)
@@ -73,7 +73,8 @@ POOL_SCHEMA = ([{
     "expected_num_objects": (int, ""),
     "fast_read": (bool, ""),
     "options": ({
-        "pg_num_min": (int, "")
+        "pg_num_min": (int, ""),
+        "pg_num_max": (int, "")
     }, ""),
     "application_metadata": ([str], ""),
     "create_time": (str, ""),
index c5c5f806980e4143bffaaa8f1a2d21f8b9ecf8c6..46785f57c83762b728579fa5f9b533a05b7d526b 100644 (file)
@@ -6956,11 +6956,15 @@ paths:
                     options:
                       description: ''
                       properties:
+                        pg_num_max:
+                          description: ''
+                          type: integer
                         pg_num_min:
                           description: ''
                           type: integer
                       required:
                       - pg_num_min
+                      - pg_num_max
                       type: object
                     pg_autoscale_mode:
                       description: ''