From e29e4ff61266be4e637867b1db298dc391d8dfc0 Mon Sep 17 00:00:00 2001 From: lijianguo Date: Mon, 17 Feb 2025 10:10:29 +0800 Subject: [PATCH] chore(pts): pts replicas not correct --- rootfs/api/models/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/api/models/app.py b/rootfs/api/models/app.py index e1e702d4..c01bfecb 100644 --- a/rootfs/api/models/app.py +++ b/rootfs/api/models/app.py @@ -563,7 +563,7 @@ def list_deployments(self, *args, **kwargs): 'release': labels['version'], 'ready': "%s/%s" % ( p["status"].get("readyReplicas", 0), - p["status"].get("replicas", 0), + p['spec'].get("replicas", 0), ), 'garbage': False if labels['type'] in ptypes else True, 'up_to_date': p["status"].get("updatedReplicas", 0),