This is an automated email from the ASF dual-hosted git repository. franztt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git
commit 4d8ee0c588a80ce714b9ab7ad423b5a09aa09fb4 Author: francescotimperi <[email protected]> AuthorDate: Wed Jul 17 22:17:36 2024 +0000 fix: pg quota checker was using wrong db name when checking ferretdb ones --- nuvolaris/quota_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuvolaris/quota_checker.py b/nuvolaris/quota_checker.py index 02df4dc..a09fd51 100644 --- a/nuvolaris/quota_checker.py +++ b/nuvolaris/quota_checker.py @@ -81,7 +81,7 @@ def check_pg_quota(pg_client:PostgresClient, pg_dbsize_list, pg_wsku, check_ferr quota_annotation = check_ferretdb and FERRRET_DB_QUOTA_ANNOTATION or POSTGRES_DB_QUOTA_ANNOTATION quota_applied = "false" - pg_db= check_ferretdb and f"spec['mongodb']['database']_ferretdb" or spec['postgres']['database'] + pg_db= check_ferretdb and f"{spec['mongodb']['database']}_ferretdb" or spec['postgres']['database'] pg_db_quota = check_ferretdb and int(spec['mongodb']['quota'])*1014*1024 or int(spec['postgres']['quota'])*1024*1024 # Check if the quota annotations has been already applied
