@daocloud-proto/kpanda 0.22.0-dev-dfae9fbe → 0.22.0-dev-8395a5e3

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
+ import * as KpandaIoApiBatchV1alpha1Job from "../../batch/v1alpha1/job.pb"
8
+ import * as KpandaIoApiCoreV1alpha1Pod from "../../core/v1alpha1/pod.pb"
9
+ import * as KpandaIoApiAppsV1alpha1Daemonset from "./daemonset.pb"
10
+ import * as KpandaIoApiAppsV1alpha1Deployment from "./deployment.pb"
11
+ import * as KpandaIoApiAppsV1alpha1Statefulset from "./statefulset.pb"
12
+ export type ListSecretRelatedWorkloadsResponse = {
13
+ pods?: KpandaIoApiCoreV1alpha1Pod.Pod[]
14
+ daemonsets?: KpandaIoApiAppsV1alpha1Daemonset.DaemonSet[]
15
+ deployments?: KpandaIoApiAppsV1alpha1Deployment.Deployment[]
16
+ statefulsets?: KpandaIoApiAppsV1alpha1Statefulset.StatefulSet[]
17
+ jobs?: KpandaIoApiBatchV1alpha1Job.Job[]
18
+ }
19
+
20
+ export type ListSecretRelatedWorkloadsRequest = {
21
+ cluster?: string
22
+ namespace?: string
23
+ secret?: string
24
+ }
25
+
26
+ export type ListConfigMapRelatedWorkloadsResponse = {
27
+ pods?: KpandaIoApiCoreV1alpha1Pod.Pod[]
28
+ daemonsets?: KpandaIoApiAppsV1alpha1Daemonset.DaemonSet[]
29
+ deployments?: KpandaIoApiAppsV1alpha1Deployment.Deployment[]
30
+ statefulsets?: KpandaIoApiAppsV1alpha1Statefulset.StatefulSet[]
31
+ jobs?: KpandaIoApiBatchV1alpha1Job.Job[]
32
+ }
33
+
34
+ export type ListConfigMapRelatedWorkloadsRequest = {
35
+ cluster?: string
36
+ namespace?: string
37
+ configmap?: string
38
+ }
@@ -20,6 +20,7 @@ export enum PluginName {
20
20
  Hwameistor = "Hwameistor",
21
21
  Flannel = "Flannel",
22
22
  KubeOvn = "KubeOvn",
23
+ OLM = "OLM",
23
24
  }
24
25
 
25
26
  export type Plugin = {
@@ -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,12 @@ 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
71
+ gpuCoreUsage?: number
72
+ gpuMemoryUsage?: number
67
73
  }
68
74
 
69
75
  export type NodeCondition = {
@@ -110,6 +116,7 @@ export type ListPodsByNodeRequest = {
110
116
  sortDir?: KpandaIoApiTypesPage.SortDir
111
117
  labelSelector?: string
112
118
  fieldSelector?: string
119
+ status?: KpandaIoApiCoreV1alpha1Pod.FilterPodStatus
113
120
  }
114
121
 
115
122
  export type ListPodsByNodeResponse = {
@@ -7,6 +7,14 @@
7
7
  import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
8
  import * as KpandaIoApiTypesPage from "../../types/page.pb"
9
9
 
10
+ export enum FilterPodStatus {
11
+ FILTER_POD_STATUS_UNSPECIFIED = "FILTER_POD_STATUS_UNSPECIFIED",
12
+ FILTER_POD_STATUS_RUNNING = "FILTER_POD_STATUS_RUNNING",
13
+ FILTER_POD_STATUS_ERROR = "FILTER_POD_STATUS_ERROR",
14
+ FILTER_POD_STATUS_COMPLETED = "FILTER_POD_STATUS_COMPLETED",
15
+ FILTER_POD_STATUS_WAITING = "FILTER_POD_STATUS_WAITING",
16
+ }
17
+
10
18
  export enum PodStatusPhase {
11
19
  PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
12
20
  Unknown = "Unknown",
@@ -486,6 +494,7 @@ export type ListPodsRequest = {
486
494
  labelSelector?: string
487
495
  fieldSelector?: string
488
496
  fuzzyName?: string
497
+ status?: FilterPodStatus
489
498
  }
490
499
 
491
500
  export type ListClusterPodsRequest = {
@@ -500,6 +509,7 @@ export type ListClusterPodsRequest = {
500
509
  labelSelector?: string
501
510
  fieldSelector?: string
502
511
  fuzzyName?: string
512
+ status?: FilterPodStatus
503
513
  }
504
514
 
505
515
  export type ListAllPodsRequest = {
@@ -15,6 +15,13 @@ export type ListWorkspacesResponse = {
15
15
  workspaces?: WorkspaceInfo[]
16
16
  }
17
17
 
18
+ export type ListGlobalRolesRequest = {
19
+ }
20
+
21
+ export type ListGlobalRolesResponse = {
22
+ roles?: string[]
23
+ }
24
+
18
25
  export type BindResourceToWorkspaceRequest = {
19
26
  workspaceId?: number
20
27
  workspaceAlias?: string
@@ -19,4 +19,12 @@ export type GPUResourceSetting = {
19
19
  isAllocatable?: boolean
20
20
  description?: string
21
21
  aliasZh?: string
22
+ range?: ResourceRange
23
+ }
24
+
25
+ export type ResourceRange = {
26
+ min?: number
27
+ minDesc?: string
28
+ max?: number
29
+ maxDesc?: string
22
30
  }
@@ -16,6 +16,7 @@ import * as KpandaIoApiAppsV1alpha1Daemonset from "../apps/v1alpha1/daemonset.pb
16
16
  import * as KpandaIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.pb"
17
17
  import * as KpandaIoApiAppsV1alpha1Replicaset from "../apps/v1alpha1/replicaset.pb"
18
18
  import * as KpandaIoApiAppsV1alpha1Request from "../apps/v1alpha1/request.pb"
19
+ import * as KpandaIoApiAppsV1alpha1Resourcerelated from "../apps/v1alpha1/resourcerelated.pb"
19
20
  import * as KpandaIoApiAppsV1alpha1Statefulset from "../apps/v1alpha1/statefulset.pb"
20
21
  import * as KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler from "../autoscaling/v1alpha1/cronhorizontalpodautoscaler.pb"
21
22
  import * as KpandaIoApiAutoscalingV1alpha1Custommetric from "../autoscaling/v1alpha1/custommetric.pb"
@@ -29,6 +30,7 @@ import * as KpandaIoApiClustersV1alpha1Cluster from "../clusters/v1alpha1/cluste
29
30
  import * as KpandaIoApiClustersettingV1alpha1Clustersetting from "../clustersetting/v1alpha1/clustersetting.pb"
30
31
  import * as KpandaIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
31
32
  import * as KpandaIoApiCoreV1alpha1Event from "../core/v1alpha1/event.pb"
33
+ import * as KpandaIoApiCoreV1alpha1Gpu from "../core/v1alpha1/gpu.pb"
32
34
  import * as KpandaIoApiCoreV1alpha1Limitrange from "../core/v1alpha1/limitrange.pb"
33
35
  import * as KpandaIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
34
36
  import * as KpandaIoApiCoreV1alpha1Node from "../core/v1alpha1/node.pb"
@@ -246,6 +248,12 @@ export class Apps {
246
248
  static UpdateWorkloadByJSON(req: KpandaIoApiAppsV1alpha1Request.UpdateWorkloadByJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Request.WorkloadJSON> {
247
249
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Request.UpdateWorkloadByJSONRequest, KpandaIoApiAppsV1alpha1Request.WorkloadJSON>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/${req["kind"]}/${req["name"]}/json`, {...initReq, method: "PUT", body: JSON.stringify(req)})
248
250
  }
251
+ static ListSecretsRelatedWorkloads(req: KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsResponse> {
252
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsRequest, KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets/${req["secret"]}/related?${fm.renderURLSearchParams(req, ["cluster", "namespace", "secret"])}`, {...initReq, method: "GET"})
253
+ }
254
+ static ListConfigMapsRelatedWorkloads(req: KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsResponse> {
255
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsRequest, KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/configmaps/${req["configmap"]}/related?${fm.renderURLSearchParams(req, ["cluster", "namespace", "configmap"])}`, {...initReq, method: "GET"})
256
+ }
249
257
  }
250
258
  export class Batch {
251
259
  static ListAllCronJobs(req: KpandaIoApiBatchV1alpha1Job.ListAllBatchRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Cronjob.ListClusterCronJobsResponse> {
@@ -623,6 +631,9 @@ export class Core {
623
631
  static DeleteService(req: KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
624
632
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}`, {...initReq, method: "DELETE"})
625
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
+ }
626
637
  }
627
638
  export class Networking {
628
639
  static ListClusterIngresses(req: KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesResponse> {
@@ -841,6 +852,9 @@ export class Workspace {
841
852
  static UnbindResourceFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse> {
842
853
  return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:unbind`, {...initReq, method: "DELETE"})
843
854
  }
855
+ static ListGlobalRolesForCurrentUser(req: KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse> {
856
+ return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse>(`/apis/kpanda.io/v1alpha1/globalroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
857
+ }
844
858
  }
845
859
  export class ClusterSetting {
846
860
  static GetClusterSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.GetClusterSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ClusterSetting> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.22.0-dev-dfae9fbe",
3
+ "version":"v0.22.0-dev-8395a5e3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {