debian-mirror-gitlab/spec/frontend/clusters_list/mock_data.js

85 lines
2.1 KiB
JavaScript
Raw Normal View History

2020-05-24 23:13:21 +05:30
export const clusterList = [
2020-04-08 14:13:33 +05:30
{
name: 'My Cluster 1',
2020-06-23 00:09:42 +05:30
environment_scope: '*',
cluster_type: 'group_type',
provider_type: 'gcp',
status: 'creating',
nodes: null,
2021-01-03 14:25:43 +05:30
kubernetes_errors: {
connection_error: 'authentication_error',
node_connection_error: 'connection_error',
metrics_connection_error: 'http_error',
},
2020-04-08 14:13:33 +05:30
},
{
name: 'My Cluster 2',
2020-06-23 00:09:42 +05:30
environment_scope: 'development',
cluster_type: 'project_type',
provider_type: 'aws',
2020-04-08 14:13:33 +05:30
status: 'unreachable',
2020-06-23 00:09:42 +05:30
nodes: [
{
status: { allocatable: { cpu: '1930m', memory: '5777156Ki' } },
usage: { cpu: '246155922n', memory: '1255212Ki' },
},
],
2021-01-03 14:25:43 +05:30
kubernetes_errors: {},
2020-04-08 14:13:33 +05:30
},
{
name: 'My Cluster 3',
2020-06-23 00:09:42 +05:30
environment_scope: 'development',
cluster_type: 'project_type',
provider_type: 'none',
2020-04-08 14:13:33 +05:30
status: 'authentication_failure',
2020-06-23 00:09:42 +05:30
nodes: [
{
status: { allocatable: { cpu: '1930m', memory: '5777156Ki' } },
usage: { cpu: '246155922n', memory: '1255212Ki' },
},
{
status: { allocatable: { cpu: '1940m', memory: '6777156Ki' } },
usage: { cpu: '307051934n', memory: '1379136Ki' },
},
],
2021-01-03 14:25:43 +05:30
kubernetes_errors: {},
2020-04-08 14:13:33 +05:30
},
{
name: 'My Cluster 4',
2020-06-23 00:09:42 +05:30
environment_scope: 'production',
cluster_type: 'project_type',
2020-04-08 14:13:33 +05:30
status: 'deleting',
2020-06-23 00:09:42 +05:30
nodes: [
{
status: { allocatable: { cpu: '1missingCpuUnit', memory: '1missingMemoryUnit' } },
usage: { cpu: '1missingCpuUnit', memory: '1missingMemoryUnit' },
},
],
2021-01-03 14:25:43 +05:30
kubernetes_errors: {},
2020-04-08 14:13:33 +05:30
},
{
name: 'My Cluster 5',
2020-06-23 00:09:42 +05:30
environment_scope: 'development',
cluster_type: 'project_type',
2020-05-24 23:13:21 +05:30
status: 'created',
2020-06-23 00:09:42 +05:30
nodes: [
{
status: { allocatable: { cpu: '1missingCpuUnit', memory: '1missingMemoryUnit' } },
},
],
2021-01-03 14:25:43 +05:30
kubernetes_errors: {},
2020-05-24 23:13:21 +05:30
},
{
name: 'My Cluster 6',
2020-06-23 00:09:42 +05:30
environment_scope: '*',
cluster_type: 'project_type',
2020-05-24 23:13:21 +05:30
status: 'cleanup_ongoing',
2021-01-03 14:25:43 +05:30
kubernetes_errors: {},
2020-04-08 14:13:33 +05:30
},
];
2020-05-24 23:13:21 +05:30
export const apiData = {
clusters: clusterList,
has_ancestor_clusters: false,
};