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

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

Issue #3258869 by sekinet, yas, Ryo Yamashita: Add a detailed view to SPA (K8s Persistent Volumes Claims)
parent cb778161
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import K8S_CONFIG_MAP_TEMPLATE from 'constant/entity_info_template/k8s/config_ma
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';
import K8S_PERSISTENT_VOLUME_CLAIM_TEMPLATE from 'constant/entity_info_template/k8s/persistent_volume_claim';

const ENTITY_INFO_LIST = [
  AWS_CLOUD_INSTANCE_TEMPLATE,
@@ -54,6 +55,7 @@ const ENTITY_INFO_LIST = [
  K8S_ROLE_TEMPLATE,
  K8S_CLUSTER_ROLE_TEMPLATE,
  K8S_CLUSTER_ROLE_BINDING_TEMPLATE,
  K8S_PERSISTENT_VOLUME_CLAIM_TEMPLATE,
];

export const UPPERCASE_WORD_SET = new Set([
+42 −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_PERSISTENT_VOLUME_CLAIM_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'k8s',
  entityName: 'persistent_volume_claim',
  entityRecords: [
    {
      panelName: 'Persistent Volume Claim',
      tableRecordList: ['labels', 'annotations'],
      keyValueRecords: [
        { labelName: 'Name', name: 'name', type: 'default' },
        { labelName: 'Namespace', name: 'namespace', type: 'default' },
        { labelName: 'Phase', name: 'phase', type: 'default' },
        { labelName: 'VolumeName', name: 'volume_name', type: 'default' },
        { labelName: 'Capacity', name: 'capacity', type: 'default' },
        { labelName: 'Request', name: 'request', type: 'default' },
        { labelName: 'AccessMode', name: 'access_mode', type: 'default' },
        { labelName: 'StorageClass', name: 'storage_class', 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_PERSISTENT_VOLUME_CLAIM_TEMPLATE;