@daocloud-proto/kpanda 0.21.0-dev-3fb8f9d3 → 0.21.0-dev-7eb30f38
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.
|
@@ -62,8 +62,10 @@ export type ListClustersResponse = {
|
|
|
62
62
|
pagination?: KpandaIoApiTypesPage.Pagination
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export type
|
|
65
|
+
export type DeleteClusterRequest = {
|
|
66
66
|
name?: string
|
|
67
|
+
deleteKpandaNamespace?: boolean
|
|
68
|
+
deleteInsightAgent?: boolean
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
export type EditClusterLabelsRequest = {
|
|
@@ -85,6 +87,7 @@ export type ValidateKubeConfigResponse = {
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
export type ValidateClusterRequest = {
|
|
90
|
+
unjoinCluster?: boolean
|
|
88
91
|
name?: string
|
|
89
92
|
kubeConfigString?: string
|
|
90
93
|
}
|
|
@@ -319,8 +319,8 @@ export class Cluster {
|
|
|
319
319
|
static EditClusterLabels(req: KpandaIoApiClustersV1alpha1Cluster.EditClusterLabelsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Cluster.EditClusterLabelsResponse> {
|
|
320
320
|
return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.EditClusterLabelsRequest, KpandaIoApiClustersV1alpha1Cluster.EditClusterLabelsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["name"]}/labels`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
321
321
|
}
|
|
322
|
-
static DeleteCluster(req: KpandaIoApiClustersV1alpha1Cluster.
|
|
323
|
-
return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.
|
|
322
|
+
static DeleteCluster(req: KpandaIoApiClustersV1alpha1Cluster.DeleteClusterRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
323
|
+
return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.DeleteClusterRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
324
324
|
}
|
|
325
325
|
static CreateOpenAPIClusterCert(req: KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertResponse> {
|
|
326
326
|
return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertRequest, KpandaIoApiClustersV1alpha1Cluster.CreateOpenAPIClusterCertResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/clustercert`, {...initReq, method: "POST", body: JSON.stringify(req)})
|