From 094d0268f75917217df696b7fa0fdc7aa42d69ae Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 22 Nov 2021 16:42:46 -0500 Subject: [PATCH] mgr/dashboard: expect pg_num_max property for pools Signed-off-by: Sage Weil --- src/pybind/mgr/dashboard/controllers/pool.py | 3 ++- src/pybind/mgr/dashboard/openapi.yaml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/pool.py b/src/pybind/mgr/dashboard/controllers/pool.py index e2717e6fd47..386d584404c 100644 --- a/src/pybind/mgr/dashboard/controllers/pool.py +++ b/src/pybind/mgr/dashboard/controllers/pool.py @@ -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, ""), diff --git a/src/pybind/mgr/dashboard/openapi.yaml b/src/pybind/mgr/dashboard/openapi.yaml index c5c5f806980..46785f57c83 100644 --- a/src/pybind/mgr/dashboard/openapi.yaml +++ b/src/pybind/mgr/dashboard/openapi.yaml @@ -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: '' -- 2.39.5