@daocloud-proto/kpanda 0.11.3-81 → 0.11.3-83
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.
|
@@ -319,4 +319,13 @@ export type ListAvailableVersionsResponse = {
|
|
|
319
319
|
containerdVersions?: string[]
|
|
320
320
|
dockerVersions?: string[]
|
|
321
321
|
preferredVersion?: ListAvailableVersionsResponsePreferredVersion
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export type CheckClusterRequest = {
|
|
325
|
+
name?: string
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export type CheckClusterResponse = {
|
|
329
|
+
available?: boolean
|
|
330
|
+
errMsg?: string
|
|
322
331
|
}
|
|
@@ -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
|
}
|