Skip to content

Commit

Permalink
feat(ns): 优化 Pod 页面环境变量展示
Browse files Browse the repository at this point in the history
- 新增"定义环境变量"表格,展示 Pod 中各容器的环境变量
- 添加容器名、环境变量名称和值的列
- 实现环境变量的分页加载、搜索和排序功能
- 保留原有的"运行时环境变量"表格
  • Loading branch information
weibaohui committed Jan 8, 2025
1 parent 21d0325 commit 663dce5
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion assets/pages/ns/pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,63 @@
}
},
{
"title": "环境变量",
"title": "定义环境变量",
"body": {
"type": "crud",
"autoGenerateFilter": {
"columnsNum": 3,
"showBtnToolbar": false
},
"headerToolbar": [
{
"type": "columns-toggler",
"align": "right",
"draggable": true,
"icon": "fas fa-cog",
"overlay": true,
"footerBtnSize": "sm"
},
"reload",
{
"type": "pagination",
"align": "right"
},
{
"type": "statistics",
"align": "right"
},
{
"type": "switch-per-page",
"align": "right"
}
],
"loadDataOnce": true,
"api": "/k8s/pod/ns/${metadata.namespace}/name/${metadata.name}/links/envFromPod",
"columns": [
{
"name": "containerName",
"label": "容器",
"type": "text"
},
{
"name": "envName",
"label": "环境变量名称",
"type": "text",
"sortable": true,
"searchable": true
},
{
"name": "envValue",
"label": "环境变量值",
"type": "text",
"sortable": true,
"searchable": true
}
]
}
},
{
"title": "运行时环境变量",
"body": {
"type": "crud",
"autoGenerateFilter": {
Expand Down

0 comments on commit 663dce5

Please sign in to comment.