@daocloud-proto/kpanda 0.22.0-dev-a00dbc21 → 0.22.0-dev-b8c327ea

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.
@@ -0,0 +1,38 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum GPUModel {
8
+ GPU_MODEL_UNSPECIFIED = "GPU_MODEL_UNSPECIFIED",
9
+ GPU_MODEL_MIG = "GPU_MODEL_MIG",
10
+ GPU_MODEL_GPU = "GPU_MODEL_GPU",
11
+ }
12
+
13
+ export type GPU = {
14
+ uid?: string
15
+ name?: string
16
+ gpuMode?: GPUModel
17
+ gpuInfo?: GPUInfo
18
+ migSpecList?: MigSpec[]
19
+ }
20
+
21
+ export type GPUInfo = {
22
+ modelName?: string
23
+ device?: string
24
+ }
25
+
26
+ export type MigSpec = {
27
+ gpuIId?: string
28
+ gpuIProfile?: string
29
+ }
30
+
31
+ export type ListNodeGPURequest = {
32
+ cluster?: string
33
+ node?: string
34
+ }
35
+
36
+ export type ListNodeGPUResponse = {
37
+ items?: GPU[]
38
+ }
@@ -64,6 +64,10 @@ export type NodeStatus = {
64
64
  storageAllocated?: string
65
65
  storageUsage?: number
66
66
  storageDriver?: string
67
+ gpuTotal?: string
68
+ gpuAllocated?: string
69
+ gpuMemoryTotal?: string
70
+ gpuMemoryAllocated?: string
67
71
  }
68
72
 
69
73
  export type NodeCondition = {
@@ -494,6 +494,7 @@ export type ListPodsRequest = {
494
494
  labelSelector?: string
495
495
  fieldSelector?: string
496
496
  fuzzyName?: string
497
+ status?: FilterPodStatus
497
498
  }
498
499
 
499
500
  export type ListClusterPodsRequest = {
@@ -30,6 +30,7 @@ import * as KpandaIoApiClustersV1alpha1Cluster from "../clusters/v1alpha1/cluste
30
30
  import * as KpandaIoApiClustersettingV1alpha1Clustersetting from "../clustersetting/v1alpha1/clustersetting.pb"
31
31
  import * as KpandaIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
32
32
  import * as KpandaIoApiCoreV1alpha1Event from "../core/v1alpha1/event.pb"
33
+ import * as KpandaIoApiCoreV1alpha1Gpu from "../core/v1alpha1/gpu.pb"
33
34
  import * as KpandaIoApiCoreV1alpha1Limitrange from "../core/v1alpha1/limitrange.pb"
34
35
  import * as KpandaIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
35
36
  import * as KpandaIoApiCoreV1alpha1Node from "../core/v1alpha1/node.pb"
@@ -630,6 +631,9 @@ export class Core {
630
631
  static DeleteService(req: KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
631
632
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}`, {...initReq, method: "DELETE"})
632
633
  }
634
+ static ListNodeGPU(req: KpandaIoApiCoreV1alpha1Gpu.ListNodeGPURequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Gpu.ListNodeGPUResponse> {
635
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Gpu.ListNodeGPURequest, KpandaIoApiCoreV1alpha1Gpu.ListNodeGPUResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["node"]}/gpus?${fm.renderURLSearchParams(req, ["cluster", "node"])}`, {...initReq, method: "GET"})
636
+ }
633
637
  }
634
638
  export class Networking {
635
639
  static ListClusterIngresses(req: KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesResponse> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.22.0-dev-a00dbc21",
3
+ "version":"v0.22.0-dev-b8c327ea",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {