@daocloud-proto/kpanda 0.11.3-246 → 0.11.3-248

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.
@@ -206,4 +206,30 @@ export type ListClusterNodeSummaryRequest = {
206
206
 
207
207
  export type ListClusterNodeSummaryResponse = {
208
208
  data?: NodeSummary[]
209
+ }
210
+
211
+ export type BatchBindNodeToNamespaceRequest = {
212
+ cluster?: string
213
+ namespace?: string
214
+ nodeNames?: string[]
215
+ }
216
+
217
+ export type BatchBindNodeToNamespaceResponse = {
218
+ successfulResults?: BindNodeToNamespaceResult[]
219
+ failedResults?: BindNodeToNamespaceResult[]
220
+ nsError?: string
221
+ }
222
+
223
+ export type BindNodeToNamespaceResult = {
224
+ nodeName?: string
225
+ error?: string
226
+ }
227
+
228
+ export type UnbindNodeToNamespaceRequest = {
229
+ cluster?: string
230
+ namespace?: string
231
+ name?: string
232
+ }
233
+
234
+ export type UnbindNodeToNamespaceResponse = {
209
235
  }
@@ -356,6 +356,12 @@ export class Core {
356
356
  static UnCordonNode(req: KpandaIoApiCoreV1alpha1Node.CordonNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.Node> {
357
357
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.CordonNodeRequest, KpandaIoApiCoreV1alpha1Node.Node>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["node"]}/uncordon`, {...initReq, method: "POST"})
358
358
  }
359
+ static BatchBindNodeToNamespace(req: KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceResponse> {
360
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceRequest, KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes:batchBindNamespace`, {...initReq, method: "POST", body: JSON.stringify(req)})
361
+ }
362
+ static UnbindNodeToNamespace(req: KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceResponse> {
363
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceRequest, KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["name"]}:unbindNamespace`, {...initReq, method: "POST", body: JSON.stringify(req)})
364
+ }
359
365
  static ListAllPods(req: KpandaIoApiCoreV1alpha1Pod.ListAllPodsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Pod.ListPodsResponse> {
360
366
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Pod.ListAllPodsRequest, KpandaIoApiCoreV1alpha1Pod.ListPodsResponse>(`/apis/kpanda.io/v1alpha1/asl/pods?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
361
367
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.11.3-246",
3
+ "version":"0.11.3-248",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {