@daocloud-proto/kpanda 0.20.0-dev-5d4f836a → 0.20.0-dev-22908ed6

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.
@@ -84,6 +84,15 @@ export type ValidateKubeConfigResponse = {
84
84
  errMsg?: string
85
85
  }
86
86
 
87
+ export type ValidateClusterRequest = {
88
+ name?: string
89
+ kubeConfigString?: string
90
+ }
91
+
92
+ export type ValidateClusterResponse = {
93
+ dceComponents?: {[key: string]: boolean}
94
+ }
95
+
87
96
  export type IntegrateClusterRequest = {
88
97
  name?: string
89
98
  aliasName?: string
@@ -307,6 +307,9 @@ export class Cluster {
307
307
  static ValidateKubeConfig(req: KpandaIoApiClustersV1alpha1Cluster.ValidateKubeConfigRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Cluster.ValidateKubeConfigResponse> {
308
308
  return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.ValidateKubeConfigRequest, KpandaIoApiClustersV1alpha1Cluster.ValidateKubeConfigResponse>(`/apis/kpanda.io/v1alpha1/clusters/validate`, {...initReq, method: "POST", body: JSON.stringify(req)})
309
309
  }
310
+ static ValidateCluster(req: KpandaIoApiClustersV1alpha1Cluster.ValidateClusterRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Cluster.ValidateClusterResponse> {
311
+ return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.ValidateClusterRequest, KpandaIoApiClustersV1alpha1Cluster.ValidateClusterResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["name"]}/validate`, {...initReq, method: "POST", body: JSON.stringify(req)})
312
+ }
310
313
  static CreateCluster(req: KpandaIoApiClustersV1alpha1Cluster.IntegrateClusterRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Cluster.CreateOrUpdateClusterResponse> {
311
314
  return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.IntegrateClusterRequest, KpandaIoApiClustersV1alpha1Cluster.CreateOrUpdateClusterResponse>(`/apis/kpanda.io/v1alpha1/clusters`, {...initReq, method: "POST", body: JSON.stringify(req)})
312
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.20.0-dev-5d4f836a",
3
+ "version":"v0.20.0-dev-22908ed6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {