@daocloud-proto/kpanda 0.25.2-dev-7cfa7bcd → 0.26.0-dev-bb5dba9d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,17 +92,9 @@ export type UpdateClusterSettingRequest = {
|
|
|
92
92
|
|
|
93
93
|
export type ListGPUSettingRequest = {
|
|
94
94
|
cluster?: string
|
|
95
|
+
availableEnable?: boolean
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
export type ListGPUSettingResponse = {
|
|
98
99
|
items?: KpandaIoApiSettingV1alpha1Setting.GPUSetting[]
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export type GetAvailableGPURequest = {
|
|
102
|
-
cluster?: string
|
|
103
|
-
type?: string
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export type GetAvailableResponse = {
|
|
107
|
-
resources?: {[key: string]: string}
|
|
108
100
|
}
|
|
@@ -60,4 +60,35 @@ export type ListClusterGPUSummaryRequest = {
|
|
|
60
60
|
|
|
61
61
|
export type ListClusterGPUSummaryResponese = {
|
|
62
62
|
summary?: GPUSummary[]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type GetNodeGPUStatsRequest = {
|
|
66
|
+
cluster?: string
|
|
67
|
+
node?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetNodeGPUStatsResponse = {
|
|
71
|
+
mode?: GPUModel
|
|
72
|
+
fullGpuStats?: FullGPUNodeStats
|
|
73
|
+
vgpuStats?: VGPUNodeStats
|
|
74
|
+
migStats?: MIGNodeStats
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type FullGPUNodeStats = {
|
|
78
|
+
totalGpuNumber?: number
|
|
79
|
+
allocatedGpuNumber?: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type VGPUNodeStats = {
|
|
83
|
+
physicalGpuNumber?: number
|
|
84
|
+
totalVirtualGpuNumber?: number
|
|
85
|
+
allocatedVirtualGpuNumber?: number
|
|
86
|
+
computePowerAllocationRate?: number
|
|
87
|
+
totalGpuMemory?: string
|
|
88
|
+
allocatedGpuMemory?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type MIGNodeStats = {
|
|
92
|
+
totalGpuNumber?: number
|
|
93
|
+
allocatedGpuNumber?: number
|
|
63
94
|
}
|
|
@@ -20,6 +20,12 @@ export type GPUResourceSetting = {
|
|
|
20
20
|
description?: string
|
|
21
21
|
aliasZh?: string
|
|
22
22
|
range?: ResourceRange
|
|
23
|
+
available?: AvailableResource
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type AvailableResource = {
|
|
27
|
+
available?: string
|
|
28
|
+
errorMessage?: string
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
export type ResourceRange = {
|
|
@@ -650,6 +650,9 @@ export class Core {
|
|
|
650
650
|
static ListClusterGPUSummary(req: KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryResponese> {
|
|
651
651
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryRequest, KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryResponese>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gpusummary?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
652
652
|
}
|
|
653
|
+
static GetNodeGPUStats(req: KpandaIoApiCoreV1alpha1Gpu.GetNodeGPUStatsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Gpu.GetNodeGPUStatsResponse> {
|
|
654
|
+
return fm.fetchReq<KpandaIoApiCoreV1alpha1Gpu.GetNodeGPUStatsRequest, KpandaIoApiCoreV1alpha1Gpu.GetNodeGPUStatsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["node"]}/gpu-stats?${fm.renderURLSearchParams(req, ["cluster", "node"])}`, {...initReq, method: "GET"})
|
|
655
|
+
}
|
|
653
656
|
}
|
|
654
657
|
export class Networking {
|
|
655
658
|
static ListClusterIngresses(req: KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesResponse> {
|
|
@@ -933,9 +936,6 @@ export class ClusterSetting {
|
|
|
933
936
|
static ListGPUSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingResponse> {
|
|
934
937
|
return fm.fetchReq<KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingRequest, KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/settings/gpu?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
935
938
|
}
|
|
936
|
-
static GetAvailableGPU(req: KpandaIoApiClustersettingV1alpha1Clustersetting.GetAvailableGPURequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.GetAvailableResponse> {
|
|
937
|
-
return fm.fetchReq<KpandaIoApiClustersettingV1alpha1Clustersetting.GetAvailableGPURequest, KpandaIoApiClustersettingV1alpha1Clustersetting.GetAvailableResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/available/gpu?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
938
|
-
}
|
|
939
939
|
}
|
|
940
940
|
export class CloudShell {
|
|
941
941
|
static CreateCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
|