Use entity.status.phase when updating cluster state (#4009)

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
chh authored and GitHub committed 2021-10-12 08:07:39 +03:00
1 parent b2b3c44695
commit 58ac856c89
1 file changed
+4
+4
View File
@@ -160,6 +160,10 @@ export class ClusterManager extends Singleton {
return "connecting";
}
if (entity?.status?.phase) {
return entity.status.phase;
}
return "disconnected";
})();