fix: add missing namespaces_list variable for cluster status API
This commit is contained in:
@@ -106,6 +106,9 @@ async def get_cluster_status(
|
|||||||
total_errors = sum(1 for v in all_validations if v.severity == 'error')
|
total_errors = sum(1 for v in all_validations if v.severity == 'error')
|
||||||
total_warnings = sum(1 for v in all_validations if v.severity == 'warning')
|
total_warnings = sum(1 for v in all_validations if v.severity == 'warning')
|
||||||
|
|
||||||
|
# Get namespace list for basic info
|
||||||
|
namespaces_list = list(set(pod.namespace for pod in pods))
|
||||||
|
|
||||||
# Process overcommit information
|
# Process overcommit information
|
||||||
cpu_overcommit_percent = 0
|
cpu_overcommit_percent = 0
|
||||||
memory_overcommit_percent = 0
|
memory_overcommit_percent = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user