Skip to content

Commit

Permalink
CRD列表增加实例查看功能在CRD列表的展示中添加了一个按钮,允许用户通过点击直接查看特定实例。这个功能改进使得用户能够更方便地访问和管理…
Browse files Browse the repository at this point in the history
…CRD资源。
  • Loading branch information
weibaohui committed Oct 15, 2024
1 parent 3adb6ef commit 292518a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions assets/pages/crd/crd.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@
}
]
}
},
{
"type": "button",
"icon": "fas fa-list text-success",
"actionType": "link",
"tooltip": "查看实例",
"link": "/crd/${spec.scope=='Namespaced'?'namespaced_cr':'cluster_cr'}?kind=${spec.names.kind}&group=${spec.group}"
}
],
"toggled": true
Expand All @@ -180,10 +187,11 @@
"type": "text"
},
{
"name": "metadata.labels",
"label": "labels",
"type": "k8sLabels"
"name": "spec.scope",
"label": "name",
"type": "text"
},

{
"name": "metadata.creationTimestamp",
"label": "age",
Expand Down

0 comments on commit 292518a

Please sign in to comment.