@daocloud-proto/kpanda 0.25.0-dev-42afa8eb → 0.25.0-dev-d107a98c
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.
|
@@ -30,6 +30,11 @@ export type MigSpec = {
|
|
|
30
30
|
gpuIProfile?: string
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
export type GPUSummary = {
|
|
34
|
+
node?: string
|
|
35
|
+
vgpuTypes?: string[]
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
export type ListNodeGPURequest = {
|
|
34
39
|
cluster?: string
|
|
35
40
|
node?: string
|
|
@@ -47,4 +52,12 @@ export type UpdateNodeGPUModeRequest = {
|
|
|
47
52
|
|
|
48
53
|
export type UpdateNodeGPUModeResponse = {
|
|
49
54
|
mode?: GPUModel
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ListClusterGPUSummaryRequest = {
|
|
58
|
+
cluster?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ListClusterGPUSummaryResponese = {
|
|
62
|
+
summary?: GPUSummary[]
|
|
50
63
|
}
|
|
@@ -643,6 +643,9 @@ export class Core {
|
|
|
643
643
|
static UpdateNodeGPUMode(req: KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeResponse> {
|
|
644
644
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeRequest, KpandaIoApiCoreV1alpha1Gpu.UpdateNodeGPUModeResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["node"]}/gpu-mode`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
645
645
|
}
|
|
646
|
+
static ListClusterGPUSummary(req: KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryResponese> {
|
|
647
|
+
return fm.fetchReq<KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryRequest, KpandaIoApiCoreV1alpha1Gpu.ListClusterGPUSummaryResponese>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gpusummary?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
648
|
+
}
|
|
646
649
|
}
|
|
647
650
|
export class Networking {
|
|
648
651
|
static ListClusterIngresses(req: KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesResponse> {
|