@daocloud-proto/kpanda 0.22.0-dev-b8c327ea → 0.22.0-dev-dfae9fbe
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.
- package/kpanda.io/api/clustersetting/v1alpha1/clustersetting.pb.ts +0 -1
- package/kpanda.io/api/core/v1alpha1/node.pb.ts +0 -5
- package/kpanda.io/api/core/v1alpha1/pod.pb.ts +0 -10
- package/kpanda.io/api/ghippo/v1alpha1/workspace.pb.ts +0 -7
- package/kpanda.io/api/setting/v1alpha1/setting.pb.ts +0 -8
- package/kpanda.io/api/v1alpha1/kpanda.pb.ts +0 -14
- package/package.json +1 -1
- package/kpanda.io/api/apps/v1alpha1/resourcerelated.pb.ts +0 -38
- package/kpanda.io/api/core/v1alpha1/gpu.pb.ts +0 -38
|
@@ -64,10 +64,6 @@ 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
67
|
}
|
|
72
68
|
|
|
73
69
|
export type NodeCondition = {
|
|
@@ -114,7 +110,6 @@ export type ListPodsByNodeRequest = {
|
|
|
114
110
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
115
111
|
labelSelector?: string
|
|
116
112
|
fieldSelector?: string
|
|
117
|
-
status?: KpandaIoApiCoreV1alpha1Pod.FilterPodStatus
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
export type ListPodsByNodeResponse = {
|
|
@@ -7,14 +7,6 @@
|
|
|
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
|
-
|
|
18
10
|
export enum PodStatusPhase {
|
|
19
11
|
PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
|
|
20
12
|
Unknown = "Unknown",
|
|
@@ -494,7 +486,6 @@ export type ListPodsRequest = {
|
|
|
494
486
|
labelSelector?: string
|
|
495
487
|
fieldSelector?: string
|
|
496
488
|
fuzzyName?: string
|
|
497
|
-
status?: FilterPodStatus
|
|
498
489
|
}
|
|
499
490
|
|
|
500
491
|
export type ListClusterPodsRequest = {
|
|
@@ -509,7 +500,6 @@ export type ListClusterPodsRequest = {
|
|
|
509
500
|
labelSelector?: string
|
|
510
501
|
fieldSelector?: string
|
|
511
502
|
fuzzyName?: string
|
|
512
|
-
status?: FilterPodStatus
|
|
513
503
|
}
|
|
514
504
|
|
|
515
505
|
export type ListAllPodsRequest = {
|
|
@@ -15,13 +15,6 @@ 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
|
-
|
|
25
18
|
export type BindResourceToWorkspaceRequest = {
|
|
26
19
|
workspaceId?: number
|
|
27
20
|
workspaceAlias?: string
|
|
@@ -16,7 +16,6 @@ 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"
|
|
20
19
|
import * as KpandaIoApiAppsV1alpha1Statefulset from "../apps/v1alpha1/statefulset.pb"
|
|
21
20
|
import * as KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler from "../autoscaling/v1alpha1/cronhorizontalpodautoscaler.pb"
|
|
22
21
|
import * as KpandaIoApiAutoscalingV1alpha1Custommetric from "../autoscaling/v1alpha1/custommetric.pb"
|
|
@@ -30,7 +29,6 @@ import * as KpandaIoApiClustersV1alpha1Cluster from "../clusters/v1alpha1/cluste
|
|
|
30
29
|
import * as KpandaIoApiClustersettingV1alpha1Clustersetting from "../clustersetting/v1alpha1/clustersetting.pb"
|
|
31
30
|
import * as KpandaIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
|
|
32
31
|
import * as KpandaIoApiCoreV1alpha1Event from "../core/v1alpha1/event.pb"
|
|
33
|
-
import * as KpandaIoApiCoreV1alpha1Gpu from "../core/v1alpha1/gpu.pb"
|
|
34
32
|
import * as KpandaIoApiCoreV1alpha1Limitrange from "../core/v1alpha1/limitrange.pb"
|
|
35
33
|
import * as KpandaIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
|
|
36
34
|
import * as KpandaIoApiCoreV1alpha1Node from "../core/v1alpha1/node.pb"
|
|
@@ -248,12 +246,6 @@ export class Apps {
|
|
|
248
246
|
static UpdateWorkloadByJSON(req: KpandaIoApiAppsV1alpha1Request.UpdateWorkloadByJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Request.WorkloadJSON> {
|
|
249
247
|
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)})
|
|
250
248
|
}
|
|
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
|
-
}
|
|
257
249
|
}
|
|
258
250
|
export class Batch {
|
|
259
251
|
static ListAllCronJobs(req: KpandaIoApiBatchV1alpha1Job.ListAllBatchRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Cronjob.ListClusterCronJobsResponse> {
|
|
@@ -631,9 +623,6 @@ export class Core {
|
|
|
631
623
|
static DeleteService(req: KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
632
624
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
633
625
|
}
|
|
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
|
-
}
|
|
637
626
|
}
|
|
638
627
|
export class Networking {
|
|
639
628
|
static ListClusterIngresses(req: KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Ingress.ListClusterIngressesResponse> {
|
|
@@ -852,9 +841,6 @@ export class Workspace {
|
|
|
852
841
|
static UnbindResourceFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse> {
|
|
853
842
|
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:unbind`, {...initReq, method: "DELETE"})
|
|
854
843
|
}
|
|
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
|
-
}
|
|
858
844
|
}
|
|
859
845
|
export class ClusterSetting {
|
|
860
846
|
static GetClusterSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.GetClusterSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ClusterSetting> {
|
package/package.json
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|