@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.
@@ -113,6 +113,7 @@ export type ListClusterWorkloadsRequest = {
113
113
  sortDir?: KpandaIoApiTypesPage.SortDir
114
114
  labelSelector?: string
115
115
  fieldSelector?: string
116
+ fuzzyName?: string
116
117
  }
117
118
 
118
119
  export type CreateWorkloadByJSONRequest = {
@@ -81,6 +81,7 @@ export type ListJobsByCronJobNameRequest = {
81
81
  sortBy?: KpandaIoApiTypesPage.SortBy
82
82
  sortDir?: KpandaIoApiTypesPage.SortDir
83
83
  name?: string
84
+ fuzzyName?: string
84
85
  }
85
86
 
86
87
  export type DeleteCronJobRequest = {
@@ -69,6 +69,7 @@ export type ListBatchRequest = {
69
69
  name?: string
70
70
  labelSelector?: string
71
71
  fieldSelector?: string
72
+ fuzzyName?: string
72
73
  }
73
74
 
74
75
  export type ListClusterJobsResponse = {
@@ -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?: string
27
- conditions?: NamespaceCondition[]
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 = {
@@ -40,6 +40,7 @@ export type ListStorageClassesRequest = {
40
40
  fieldSelector?: string
41
41
  provisioner?: string
42
42
  reclaimPolicy?: string
43
+ fuzzyName?: string
43
44
  }
44
45
 
45
46
  export type ListStorageClassesResponse = {
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.11.3-81",
3
+ "version":"0.11.3-87",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {