Skip to content
Snippets Groups Projects
Commit 68dd8aa1 authored by Takumaru Sekine's avatar Takumaru Sekine Committed by Yas Naoi
Browse files

Issue #3258858 by sekinet, yas, Ryo Yamashita: Add a detailed view to SPA (K8s Cluster Roles)

parent 856c0a3a
No related branches found
No related tags found
1 merge request!35Issue #3258858: Add a detailed view to SPA (K8s Cluster Roles)
......@@ -23,6 +23,7 @@ import K8S_RESOURCE_QUOTA_TEMPLATE from 'constant/entity_info_template/k8s/resou
import K8S_PRIORITY_CLASS_TEMPLATE from 'constant/entity_info_template/k8s/priority_class';
import K8S_CONFIG_MAP_TEMPLATE from 'constant/entity_info_template/k8s/config_map';
import K8S_ROLE_TEMPLATE from 'constant/entity_info_template/k8s/role';
import K8S_CLUSTER_ROLE_TEMPLATE from 'constant/entity_info_template/k8s/cluster_role';
const ENTITY_INFO_LIST = [
AWS_CLOUD_INSTANCE_TEMPLATE,
......@@ -50,6 +51,7 @@ const ENTITY_INFO_LIST = [
K8S_PRIORITY_CLASS_TEMPLATE,
K8S_CONFIG_MAP_TEMPLATE,
K8S_ROLE_TEMPLATE,
K8S_CLUSTER_ROLE_TEMPLATE,
];
export const UPPERCASE_WORD_SET = new Set([
......
import EntityInfoTemplate from 'model/EntityInfoTemplate';
// Template for displaying detailed information about entities in K8s.
const K8S_CLUSTER_ROLE_TEMPLATE: EntityInfoTemplate = {
cloudServiceProvider: 'k8s',
entityName: 'cluster_role',
entityRecords: [
{
panelName: 'Cluster Role',
tableRecordList: ['labels', 'annotations', 'rules'],
keyValueRecords: [
{ labelName: 'Name', name: 'name', type: 'default' },
{ labelName: 'Created', name: 'created', type: 'datetime' },
{ labelName: 'Labels', name: 'labels', type: 'default' },
{ labelName: 'Annotations', name: 'annotations', type: 'default' },
{ labelName: 'Rules', name: 'rules', type: 'default' },
]
},
{
panelName: 'Detail',
tableRecordList: [],
keyValueRecords: [
{ labelName: 'Detail', name: 'detail', type: 'default' },
]
},
{
panelName: 'Other',
tableRecordList: [],
keyValueRecords: [
{ labelName: 'Cloud Service Provider ID', name: 'cloud_context', type: 'default' },
]
},
]
};
export default K8S_CLUSTER_ROLE_TEMPLATE;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment