@daocloud-proto/kpanda 0.17.0-dev-e753478f → 0.17.0-dev-cd5d74d2
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.
|
@@ -344,4 +344,26 @@ export type CheckNodeRequest = {
|
|
|
344
344
|
cluster?: string
|
|
345
345
|
dkgClusterName?: string
|
|
346
346
|
nodeConfig?: NodeConfig
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type PreCheckClusterRequest = {
|
|
350
|
+
name?: string
|
|
351
|
+
dkgClusterName?: string
|
|
352
|
+
nodeConfig?: NodeConfig
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export type GetPreCheckClusterInfoRequest = {
|
|
356
|
+
name?: string
|
|
357
|
+
dkgClusterName?: string
|
|
358
|
+
operation?: string
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export type GetPreCheckClusterInfoResponse = {
|
|
362
|
+
nodes?: {[key: string]: PreCheckNodeInfo}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export type PreCheckNodeInfo = {
|
|
366
|
+
pingConnection?: string
|
|
367
|
+
existingK8SService?: string
|
|
368
|
+
osType?: {[key: string]: string}
|
|
347
369
|
}
|
|
@@ -876,6 +876,12 @@ export class Clusterlcm {
|
|
|
876
876
|
static CheckNode(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
|
|
877
877
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckNodeRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["cluster"]}/nodes:check`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
878
878
|
}
|
|
879
|
+
static PreCheckCluster(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.PreCheckClusterRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
|
|
880
|
+
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.PreCheckClusterRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["name"]}:precheck`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
881
|
+
}
|
|
882
|
+
static GetPreCheckClusterInfo(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.GetPreCheckClusterInfoRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.GetPreCheckClusterInfoResponse> {
|
|
883
|
+
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.GetPreCheckClusterInfoRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.GetPreCheckClusterInfoResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["name"]}/precheck-infos`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
884
|
+
}
|
|
879
885
|
static ListClusterlcmOps(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsResponse> {
|
|
880
886
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["cluster"]}/ops?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
881
887
|
}
|