Skip to content

Commit

Permalink
fix: cluster run pod number (#1438)
Browse files Browse the repository at this point in the history
* fix: version 6.0.3

Signed-off-by: songyg <[email protected]>

* fix: cluster run pod number

Signed-off-by: songyg <[email protected]>

* fix: plugin utils

Signed-off-by: songyg <[email protected]>

---------

Signed-off-by: songyg <[email protected]>
Co-authored-by: songyg <[email protected]>
  • Loading branch information
RainBondsongyg and songyg authored Dec 17, 2024
1 parent b0e8da9 commit 317354a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/ClusterMgtResources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Index extends Component {
used_disk,
used_memory,
services_status,
run_pod_number
} = rowClusterInfo
// CPU使用率
const cpuUsed = total_cpu == 0 ? 0 : ((used_cpu / total_cpu) * 100).toFixed(2);
Expand Down Expand Up @@ -113,7 +114,7 @@ class Index extends Component {
</div>
<div>
<p>
{services_status && services_status.running || 0}
{run_pod_number || 0}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/pulginUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export default {
// 对企业级、团队级、应用级的插件列表进行筛选归类
segregatePluginsByHierarchy(list, type) {
const arr = (list || []).filter(item => item?.plugin_views.includes(type) && item.name != 'rainbond-enterprise-base' && item.enable_status === 'true' ).map(item => item);
const arr = (list || []).filter(item => item?.plugin_views?.includes(type) && item.name != 'rainbond-enterprise-base' && item.enable_status === 'true' ).map(item => item);
return arr
},
// 判断当前企业是否安装企业插件
Expand Down

0 comments on commit 317354a

Please sign in to comment.