File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export const ROUTES = {
117
117
ATTRIBUTES_UPDATE : 'attributes/update' ,
118
118
APP_LIST_MIN : 'app/min' ,
119
119
CLUSTER_LIST_MIN : 'cluster/autocomplete' ,
120
+ CLUSTER_LIST_RAW : 'k8s/capacity/cluster/list/raw' ,
120
121
PLUGIN_GLOBAL_LIST_DETAIL_V2 : 'plugin/global/list/detail/v2' ,
121
122
PLUGIN_GLOBAL_LIST_V2 : 'plugin/global/list/v2' ,
122
123
PLUGIN_GLOBAL_LIST_TAGS : 'plugin/global/list/tags' ,
Original file line number Diff line number Diff line change 1
- import { post } from '@Common/Api'
1
+ import { get , post } from '@Common/Api'
2
2
import { ROUTES } from '@Common/Constants'
3
3
import { ResponseType } from '@Common/Types'
4
4
import {
7
7
K8sResourceDetailType ,
8
8
K8sResourceListPayloadType ,
9
9
} from './ResourceBrowser.Types'
10
+ import { ClusterDetail } from './types'
10
11
11
12
export const getK8sResourceList = (
12
13
resourceListPayload : K8sResourceListPayloadType ,
@@ -19,3 +20,5 @@ export const getK8sResourceList = (
19
20
export const createNewResource = (
20
21
resourceListPayload : CreateResourcePayload ,
21
22
) : Promise < ResponseType < CreateResourceDTO [ ] > > => post ( ROUTES . K8S_RESOURCE_CREATE , resourceListPayload )
23
+
24
+ export const getClusterListRaw = ( ) => get < ClusterDetail [ ] > ( ROUTES . CLUSTER_LIST_RAW )
You can’t perform that action at this time.
0 commit comments