@daocloud-proto/kairship 0.3.2-49 → 0.3.2-51
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.
|
@@ -96,12 +96,19 @@ export type ListClustersRequest = {
|
|
|
96
96
|
fieldSelector?: string
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export type
|
|
99
|
+
export type ListClustersLocationsSummaryRequest = {
|
|
100
|
+
instance?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type ListClustersLocationsSummaryResponse = {
|
|
104
|
+
locations?: ClusterLocation[]
|
|
100
105
|
}
|
|
101
106
|
|
|
102
|
-
export type
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
export type ClusterLocation = {
|
|
108
|
+
cluster?: string
|
|
109
|
+
provider?: string
|
|
110
|
+
region?: string
|
|
111
|
+
zone?: string
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
export type ListClustersResponse = {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
import * as KairshipIoApiTypesTypes from "../../types/types.pb"
|
|
8
9
|
export type ResourceSelector = {
|
|
9
10
|
apiVersion?: string
|
|
10
11
|
kind?: string
|
|
@@ -17,4 +18,5 @@ export type ClusterAffinity = {
|
|
|
17
18
|
labelSelector?: KairshipIoApiTypesObjectmeta.LabelSelector
|
|
18
19
|
clusterNames?: string[]
|
|
19
20
|
exclude?: string[]
|
|
21
|
+
fieldSelector?: KairshipIoApiTypesTypes.ClusterFieldSelector
|
|
20
22
|
}
|
|
@@ -9,4 +9,23 @@ export enum ConditionStatus {
|
|
|
9
9
|
True = "True",
|
|
10
10
|
False = "False",
|
|
11
11
|
Unknown = "Unknown",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum ClusterSelectorOperator {
|
|
15
|
+
In = "In",
|
|
16
|
+
NotIn = "NotIn",
|
|
17
|
+
Exists = "Exists",
|
|
18
|
+
DoesNotExist = "DoesNotExist",
|
|
19
|
+
Gt = "Gt",
|
|
20
|
+
Lt = "Lt",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type ClusterFieldSelector = {
|
|
24
|
+
matchExpressions?: ClusterSelectorRequirement[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type ClusterSelectorRequirement = {
|
|
28
|
+
key?: string
|
|
29
|
+
operator?: ClusterSelectorOperator
|
|
30
|
+
values?: string[]
|
|
12
31
|
}
|
|
@@ -69,8 +69,8 @@ export class Cluster {
|
|
|
69
69
|
static ListClusters(req: KairshipIoApiClusterV1alpha1Cluster.ListClustersRequest, initReq?: fm.InitReq): Promise<KairshipIoApiClusterV1alpha1Cluster.ListClustersResponse> {
|
|
70
70
|
return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ListClustersRequest, KairshipIoApiClusterV1alpha1Cluster.ListClustersResponse>(`/apis/kairship.io/v1alpha1/kpanda-clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
71
71
|
}
|
|
72
|
-
static
|
|
73
|
-
return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.
|
|
72
|
+
static ListClustersLocationSummary(req: KairshipIoApiClusterV1alpha1Cluster.ListClustersLocationsSummaryRequest, initReq?: fm.InitReq): Promise<KairshipIoApiClusterV1alpha1Cluster.ListClustersLocationsSummaryResponse> {
|
|
73
|
+
return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ListClustersLocationsSummaryRequest, KairshipIoApiClusterV1alpha1Cluster.ListClustersLocationsSummaryResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters-locations?${fm.renderURLSearchParams(req, ["instance"])}`, {...initReq, method: "GET"})
|
|
74
74
|
}
|
|
75
75
|
static JoinCluster(req: KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
76
76
|
return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["name"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|