Commit 5ef1a9d4 authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

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

parent 7b9c626a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import K8S_DAEMON_SET_TEMPLATE from 'constant/entity_info_template/k8s/daemon_se
import K8S_SERVICE_ACCOUNT_TEMPLATE from 'constant/entity_info_template/k8s/service_account';
import K8S_HORIZONTAL_POD_AUTOSCALER_TEMPLATE from 'constant/entity_info_template/k8s/horizontal_pod_autoscaler';
import K8S_API_SERVICE_TEMPLATE from 'constant/entity_info_template/k8s/api_service';
import K8S_SCHEDULE_TEMPLATE from 'constant/entity_info_template/k8s/schedule';

const ENTITY_INFO_LIST = [
  AWS_CLOUD_INSTANCE_TEMPLATE,
@@ -84,6 +85,7 @@ const ENTITY_INFO_LIST = [
  K8S_SERVICE_ACCOUNT_TEMPLATE,
  K8S_HORIZONTAL_POD_AUTOSCALER_TEMPLATE,
  K8S_API_SERVICE_TEMPLATE,
  K8S_SCHEDULE_TEMPLATE,
];

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

const K8S_SCHEDULE_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'k8s',
  entityName: 'schedule',
  entityRecords: [
    {
      panelName: 'Schedule',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Kind', name: 'kind', type: 'default' },
        { labelName: 'Name', name: 'name', type: 'default' },
        { labelName: 'Namespace Name', name: 'namespace_name', type: 'default' },
        { labelName: 'Resource Name', name: 'resource_name', type: 'default' },
        { labelName: 'Start-up Time', name: 'start_time', type: 'default' },
        { labelName: 'Stop Time', name: 'stop_time', type: 'default' },
        { labelName: 'State', name: 'state', type: 'default' },
        { labelName: 'Launch template name', name: 'launch_template_name', type: 'default' },
      ]
    },
    {
      panelName: 'Detail',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Manifest', name: 'manifest', type: 'default' },
      ]
    },
    {
      panelName: 'Other',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Cloud Service Provider ID', name: 'cloud_context', type: 'default' },
      ]
    },
  ]
}

export default K8S_SCHEDULE_TEMPLATE;