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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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([
+36 −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_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;