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

Issue #3258854 by sekinet, yas, Ryo Yamashita: Add a detailed view to SPA (K8s Role Bindings)

parent a6b64269
No related branches found
No related tags found
1 merge request!34Issue #3258854: Add a detailed view to SPA (K8s Role Bindings)
......@@ -24,6 +24,7 @@ import K8S_PRIORITY_CLASS_TEMPLATE from 'constant/entity_info_template/k8s/prior
import K8S_CONFIG_MAP_TEMPLATE from 'constant/entity_info_template/k8s/config_map';
import K8S_SECRET_TEMPLATE from 'constant/entity_info_template/k8s/secret';
import K8S_ROLE_TEMPLATE from 'constant/entity_info_template/k8s/role';
import K8S_ROLE_BINDING_TEMPLATE from 'constant/entity_info_template/k8s/role_binding';
import K8S_CLUSTER_ROLE_TEMPLATE from 'constant/entity_info_template/k8s/cluster_role';
import K8S_CLUSTER_ROLE_BINDING_TEMPLATE from 'constant/entity_info_template/k8s/cluster_role_binding';
import K8S_PERSISTENT_VOLUME_TEMPLATE from 'constant/entity_info_template/k8s/persistent_volume';
......@@ -58,6 +59,7 @@ const ENTITY_INFO_LIST = [
K8S_CONFIG_MAP_TEMPLATE,
K8S_SECRET_TEMPLATE,
K8S_ROLE_TEMPLATE,
K8S_ROLE_BINDING_TEMPLATE,
K8S_CLUSTER_ROLE_TEMPLATE,
K8S_CLUSTER_ROLE_BINDING_TEMPLATE,
K8S_PERSISTENT_VOLUME_TEMPLATE,
......
import EntityInfoTemplate from 'model/EntityInfoTemplate';
// Template for displaying detailed information about entities in K8s.
const K8S_ROLE_BINDING_TEMPLATE: EntityInfoTemplate = {
cloudServiceProvider: 'k8s',
entityName: 'role_binding',
entityRecords: [
{
panelName: 'Role Binding',
tableRecordList: ['subjects', 'labels', 'annotations'],
keyValueRecords: [
{ labelName: 'Name', name: 'name', type: 'default' },
{ labelName: 'Namespace', name: 'namespace', type: 'default' },
{ labelName: 'Subjects', name: 'subjects', type: 'default' },
{ labelName: 'Role', name: 'role_ref', type: 'default' },
{ labelName: 'Created', name: 'created', type: 'datetime' },
{ labelName: 'Labels', name: 'labels', type: 'default' },
{ labelName: 'Annotations', name: 'annotations', 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_ROLE_BINDING_TEMPLATE;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment