@daocloud-proto/kairship 0.3.2-65 → 0.3.2-69
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.
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as KairshipIoApiTypesCore from "../../types/core.pb"
|
|
8
8
|
import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
9
9
|
import * as KairshipIoApiTypesPage from "../../types/page.pb"
|
|
10
|
+
import * as KairshipIoApiTypesTypes from "../../types/types.pb"
|
|
10
11
|
|
|
11
12
|
export enum ClusterPhase {
|
|
12
13
|
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
@@ -94,6 +95,7 @@ export type ListClustersRequest = {
|
|
|
94
95
|
zone?: string
|
|
95
96
|
labelSelector?: string
|
|
96
97
|
fieldSelector?: string
|
|
98
|
+
clusterSelector?: KairshipIoApiTypesTypes.ClusterFieldSelector
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
export type ListClustersLocationsSummaryRequest = {
|
|
@@ -126,4 +126,47 @@ export type CreateInstanceKubeConfigRequest = {
|
|
|
126
126
|
export type CreateInstanceKubeConfigResponse = {
|
|
127
127
|
kubeConfigString?: string
|
|
128
128
|
instance?: string
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type FailoverTimeout = {
|
|
132
|
+
failoverEvictionTimeout?: string
|
|
133
|
+
clusterMonitorPeriod?: string
|
|
134
|
+
clusterStartupGracePeriod?: string
|
|
135
|
+
clusterMonitorGracePeriod?: string
|
|
136
|
+
gracefulEvictionTimeout?: string
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type UpdateInstanceFailoverRequest = {
|
|
140
|
+
instance?: string
|
|
141
|
+
enabled?: boolean
|
|
142
|
+
timeout?: FailoverTimeout
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type GetInstanceFailoverRequest = {
|
|
146
|
+
instance?: string
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetInstanceFailoverResponse = {
|
|
150
|
+
enabled?: boolean
|
|
151
|
+
timeout?: FailoverTimeout
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type DeschedulerTimeout = {
|
|
155
|
+
deschedulingInterval?: string
|
|
156
|
+
unschedulableThreshold?: string
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type UpdateInstanceDeschedulerRequest = {
|
|
160
|
+
instance?: string
|
|
161
|
+
enabled?: boolean
|
|
162
|
+
timeout?: DeschedulerTimeout
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type GetInstanceDeschedulerRequest = {
|
|
166
|
+
instance?: string
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type GetInstanceDeschedulerResponse = {
|
|
170
|
+
enabled?: boolean
|
|
171
|
+
timeout?: DeschedulerTimeout
|
|
129
172
|
}
|
|
@@ -270,6 +270,18 @@ export class Instance {
|
|
|
270
270
|
static CreateInstanceAdminKubeConfig(req: KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigResponse> {
|
|
271
271
|
return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigRequest, KairshipIoApiInstanceV1alpha1Instance.CreateInstanceKubeConfigResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/kubeconfig`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
272
272
|
}
|
|
273
|
+
static GetInstanceFailover(req: KairshipIoApiInstanceV1alpha1Instance.GetInstanceFailoverRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstanceV1alpha1Instance.GetInstanceFailoverResponse> {
|
|
274
|
+
return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.GetInstanceFailoverRequest, KairshipIoApiInstanceV1alpha1Instance.GetInstanceFailoverResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/failover?${fm.renderURLSearchParams(req, ["instance"])}`, {...initReq, method: "GET"})
|
|
275
|
+
}
|
|
276
|
+
static UpdateInstanceFailover(req: KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceFailoverRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
277
|
+
return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceFailoverRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/failover`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
278
|
+
}
|
|
279
|
+
static GetInstanceDescheduler(req: KairshipIoApiInstanceV1alpha1Instance.GetInstanceDeschedulerRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstanceV1alpha1Instance.GetInstanceDeschedulerResponse> {
|
|
280
|
+
return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.GetInstanceDeschedulerRequest, KairshipIoApiInstanceV1alpha1Instance.GetInstanceDeschedulerResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/descheduler?${fm.renderURLSearchParams(req, ["instance"])}`, {...initReq, method: "GET"})
|
|
281
|
+
}
|
|
282
|
+
static UpdateInstanceDescheduler(req: KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceDeschedulerRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
283
|
+
return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.UpdateInstanceDeschedulerRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/descheduler`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
284
|
+
}
|
|
273
285
|
}
|
|
274
286
|
export class CloudShell {
|
|
275
287
|
static CreateCloudShell(req: KairshipIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
|