Commit 0d2f4b59 authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3259476 by baldwinlouie, yas, Ryo Yamashita: Add a detailed view to SPA (K8s DaemonSets)

parent 8d013e14
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import K8S_JOB_TEMPLATE from 'constant/entity_info_template/k8s/job';
import K8S_SERVICE_TEMPLATE from 'constant/entity_info_template/k8s/service';
import K8S_ENDPOINT_TEMPLATE from 'constant/entity_info_template/k8s/endpoint';
import K8S_STATEFUL_SET_TEMPLATE from 'constant/entity_info_template/k8s/stateful_set';
import K8S_DAEMON_SET_TEMPLATE from 'constant/entity_info_template/k8s/daemon_set';
import K8S_HORIZONTAL_POD_AUTOSCALER_TEMPLATE from 'constant/entity_info_template/k8s/horizontal_pod_autoscaler';

const ENTITY_INFO_LIST = [
@@ -73,6 +74,7 @@ const ENTITY_INFO_LIST = [
  K8S_SERVICE_TEMPLATE,
  K8S_ENDPOINT_TEMPLATE,
  K8S_STATEFUL_SET_TEMPLATE,
  K8S_DAEMON_SET_TEMPLATE,
  K8S_HORIZONTAL_POD_AUTOSCALER_TEMPLATE,
];

+39 −0
Original line number Diff line number Diff line
import EntityInfoTemplate from 'model/EntityInfoTemplate';

const K8S_DAEMON_SET_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'k8s',
  entityName: 'daemon_set',
  entityRecords: [
    {
      panelName: 'Ingress',
      tableRecordList: ['annotations', 'labels'],
      keyValueRecords: [
        { labelName: 'Name', name: 'name', type: 'default' },
        { labelName: 'Labels', name: 'labels', type: 'default' },
        { labelName: 'Annotations', name: 'annotations', type: 'default' },
        { labelName: 'Namespace', name: 'namespace', type: 'default' },
        { labelName: 'CPU (Request)', name: 'cpu_request', type: 'number' },
        { labelName: 'CPU (Limit)', name: 'cpu_limit', type: 'number' },
        { labelName: 'Memory (Request)', name: 'memory_request', type: 'number' },
        { labelName: 'Memory (Limit)', name: 'memory_limit', type: 'number' },
      ]
    },
    {
      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_DAEMON_SET_TEMPLATE;