@daocloud-proto/kpanda 0.11.3-81 → 0.11.3-87
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/apps/v1alpha1/request.pb.ts +1 -0
- package/kpanda.io/api/batch/v1alpha1/cronjob.pb.ts +1 -0
- package/kpanda.io/api/batch/v1alpha1/job.pb.ts +1 -0
- package/kpanda.io/api/clusterlcm/v1alpha1/clusterlcm.pb.ts +10 -0
- package/kpanda.io/api/core/v1alpha1/limitrange.pb.ts +2 -0
- package/kpanda.io/api/core/v1alpha1/namespace.pb.ts +10 -2
- package/kpanda.io/api/storage/v1alpha1/storageclass.pb.ts +1 -0
- package/kpanda.io/api/v1alpha1/kpanda.pb.ts +3 -0
- package/package.json +1 -1
|
@@ -175,6 +175,7 @@ export type ListClusterlcmOpsRequest = {
|
|
|
175
175
|
targetCluster?: string
|
|
176
176
|
action?: ListClusterlcmOpsRequestAction
|
|
177
177
|
phase?: Phase
|
|
178
|
+
fuzzyName?: string
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
export type ListClusterlcmOpsResponse = {
|
|
@@ -319,4 +320,13 @@ export type ListAvailableVersionsResponse = {
|
|
|
319
320
|
containerdVersions?: string[]
|
|
320
321
|
dockerVersions?: string[]
|
|
321
322
|
preferredVersion?: ListAvailableVersionsResponsePreferredVersion
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export type CheckClusterRequest = {
|
|
326
|
+
name?: string
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type CheckClusterResponse = {
|
|
330
|
+
available?: boolean
|
|
331
|
+
errMsg?: string
|
|
322
332
|
}
|
|
@@ -33,6 +33,7 @@ export type ListClusterLimitRangesRequest = {
|
|
|
33
33
|
name?: string
|
|
34
34
|
labelSelector?: string
|
|
35
35
|
fieldSelector?: string
|
|
36
|
+
fuzzyName?: string
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
export type ListClusterLimitRangesResponse = {
|
|
@@ -50,6 +51,7 @@ export type ListLimitRangesRequest = {
|
|
|
50
51
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
51
52
|
labelSelector?: string
|
|
52
53
|
fieldSelector?: string
|
|
54
|
+
fuzzyName?: string
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export type ListLimitRangesResponse = {
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
8
|
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
9
|
|
|
10
|
+
export enum NamespacePhase {
|
|
11
|
+
NAMESPACE_PHASE_UNSPECIFIED = "NAMESPACE_PHASE_UNSPECIFIED",
|
|
12
|
+
Active = "Active",
|
|
13
|
+
Terminating = "Terminating",
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
export enum ListClusterNamespaceSummaryResponseScope {
|
|
11
17
|
SCOPE_UNSPECIFIED = "SCOPE_UNSPECIFIED",
|
|
12
18
|
Cluster = "Cluster",
|
|
@@ -16,6 +22,7 @@ export enum ListClusterNamespaceSummaryResponseScope {
|
|
|
16
22
|
export type Namespace = {
|
|
17
23
|
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
18
24
|
spec?: NamespaceSpec
|
|
25
|
+
status?: NamespaceStatus
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
export type NamespaceSpec = {
|
|
@@ -23,8 +30,8 @@ export type NamespaceSpec = {
|
|
|
23
30
|
}
|
|
24
31
|
|
|
25
32
|
export type NamespaceStatus = {
|
|
26
|
-
phase?:
|
|
27
|
-
conditions?:
|
|
33
|
+
phase?: NamespacePhase
|
|
34
|
+
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
export type NamespaceCondition = {
|
|
@@ -66,6 +73,7 @@ export type ListClusterNamespacesRequest = {
|
|
|
66
73
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
67
74
|
labelSelector?: string
|
|
68
75
|
fieldSelector?: string
|
|
76
|
+
fuzzyName?: string
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
export type ListClusterNamespacesResponse = {
|
|
@@ -749,6 +749,9 @@ export class Clusterlcm {
|
|
|
749
749
|
static ResetCluster(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.ResetClusterRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
|
|
750
750
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ResetClusterRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["name"]}:reset`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
751
751
|
}
|
|
752
|
+
static CheckCluster(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckClusterRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckClusterResponse> {
|
|
753
|
+
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckClusterRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckClusterResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["name"]}:check`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
754
|
+
}
|
|
752
755
|
static RemoveNode(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.RemoveNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
|
|
753
756
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.RemoveNodeRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["cluster"]}/nodes/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
754
757
|
}
|