@daocloud-proto/kairship 0.2.2-16 → 0.2.2-18
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.
|
@@ -107,4 +107,17 @@ export type ClusterRequest = {
|
|
|
107
107
|
|
|
108
108
|
export type ClusterResponse = {
|
|
109
109
|
cluster?: Cluster
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type ListClustersLabelsRequest = {
|
|
113
|
+
instance?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type ListClustersLabelsResponse = {
|
|
117
|
+
clusterLabels?: ClusterLabels[]
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type ClusterLabels = {
|
|
121
|
+
cluster?: string
|
|
122
|
+
labels?: {[key: string]: string}
|
|
110
123
|
}
|
|
@@ -81,6 +81,9 @@ export class Cluster {
|
|
|
81
81
|
static UpdateJoinedCluster(req: KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, initReq?: fm.InitReq): Promise<KairshipIoApiClusterV1alpha1Cluster.ClusterResponse> {
|
|
82
82
|
return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, KairshipIoApiClusterV1alpha1Cluster.ClusterResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
83
83
|
}
|
|
84
|
+
static ListClustersLabels(req: KairshipIoApiClusterV1alpha1Cluster.ListClustersLabelsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiClusterV1alpha1Cluster.ListClustersLabelsResponse> {
|
|
85
|
+
return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ListClustersLabelsRequest, KairshipIoApiClusterV1alpha1Cluster.ListClustersLabelsResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters-labels?${fm.renderURLSearchParams(req, ["instance"])}`, {...initReq, method: "GET"})
|
|
86
|
+
}
|
|
84
87
|
}
|
|
85
88
|
export class Core {
|
|
86
89
|
static ListNamespaces(req: KairshipIoApiCoreV1alpha1Namespace.ListNamespacesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Namespace.ListNamespacesResponse> {
|