Commit cb778161 authored by Takumaru Sekine's avatar Takumaru Sekine Committed by Yas Naoi
Browse files

Issue #3258862 by sekinet, yas, Ryo Yamashita: Add a detailed view to SPA (K8s...

Issue #3258862 by sekinet, yas, Ryo Yamashita: Add a detailed view to SPA (K8s Cluster Role Bindings)
parent 68dd8aa1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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_ROLE_TEMPLATE from 'constant/entity_info_template/k8s/role';
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';

const ENTITY_INFO_LIST = [
  AWS_CLOUD_INSTANCE_TEMPLATE,
@@ -52,6 +53,7 @@ const ENTITY_INFO_LIST = [
  K8S_CONFIG_MAP_TEMPLATE,
  K8S_ROLE_TEMPLATE,
  K8S_CLUSTER_ROLE_TEMPLATE,
  K8S_CLUSTER_ROLE_BINDING_TEMPLATE,
];

export const UPPERCASE_WORD_SET = new Set([
+37 −0
Original line number Diff line number Diff line
import EntityInfoTemplate from 'model/EntityInfoTemplate';

// Template for displaying detailed information about entities in K8s.
const K8S_CLUSTER_ROLE_BINDING_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'k8s',
  entityName: 'cluster_role_binding',
  entityRecords: [
    {
      panelName: 'Cluster Role Binding',
      tableRecordList: ['labels', 'annotations', 'subjects'],
      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: 'Subjects', name: 'subjects', type: 'default' },
        { labelName: 'Role', name: 'role_ref', 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_BINDING_TEMPLATE;