@scaleway/sdk-k8s 2.6.1 → 2.7.0
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.
- package/dist/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1/api.gen.js +5 -3
- package/dist/v1/api.utils.js +2 -0
- package/dist/v1/content.gen.js +5 -3
- package/dist/v1/index.gen.js +5 -0
- package/dist/v1/index.js +3 -1
- package/dist/v1/marshalling.gen.js +40 -32
- package/dist/v1/metadata.gen.d.ts +149 -0
- package/dist/v1/metadata.gen.js +166 -0
- package/dist/v1/types.gen.d.ts +25 -1
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1/validation-rules.gen.js +20 -18
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __exportAll = (all, no_symbols) => {
|
|
3
4
|
let target = {};
|
|
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
|
|
|
8
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
10
|
return target;
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { __exportAll };
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNode, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* Kubernetes API.
|
|
7
8
|
|
|
8
9
|
This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
|
|
9
10
|
*/
|
|
10
|
-
var API
|
|
11
|
+
var API = class extends API$1 {
|
|
11
12
|
/**
|
|
12
13
|
* Locality of this API.
|
|
13
14
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -434,4 +435,5 @@ var API$1 = class extends API {
|
|
|
434
435
|
*/
|
|
435
436
|
listClusterTypes = (request = {}) => enrichForPagination("clusterTypes", this.pageOfListClusterTypes, request);
|
|
436
437
|
};
|
|
437
|
-
|
|
438
|
+
//#endregion
|
|
439
|
+
export { API };
|
package/dist/v1/api.utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { API } from "./api.gen.js";
|
|
2
|
+
//#region src/v1/api.utils.ts
|
|
2
3
|
var K8SUtilsAPI = class extends API {
|
|
3
4
|
/**
|
|
4
5
|
* Get configuration of a kube cluster.
|
|
@@ -8,4 +9,5 @@ var K8SUtilsAPI = class extends API {
|
|
|
8
9
|
*/
|
|
9
10
|
getClusterKubeConfig = (request) => this._getClusterKubeConfig(request);
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { K8SUtilsAPI };
|
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
//#region src/v1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link ClusterStatus}. */
|
|
2
|
-
|
|
3
|
+
var CLUSTER_TRANSIENT_STATUSES = [
|
|
3
4
|
"creating",
|
|
4
5
|
"deleting",
|
|
5
6
|
"updating"
|
|
6
7
|
];
|
|
7
8
|
/** Lists transient statutes of the enum {@link NodeStatus}. */
|
|
8
|
-
|
|
9
|
+
var NODE_TRANSIENT_STATUSES = [
|
|
9
10
|
"creating",
|
|
10
11
|
"deleting",
|
|
11
12
|
"rebooting",
|
|
@@ -14,9 +15,10 @@ const NODE_TRANSIENT_STATUSES = [
|
|
|
14
15
|
"registering"
|
|
15
16
|
];
|
|
16
17
|
/** Lists transient statutes of the enum {@link PoolStatus}. */
|
|
17
|
-
|
|
18
|
+
var POOL_TRANSIENT_STATUSES = [
|
|
18
19
|
"deleting",
|
|
19
20
|
"scaling",
|
|
20
21
|
"upgrading"
|
|
21
22
|
];
|
|
23
|
+
//#endregion
|
|
22
24
|
export { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
+
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNode, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
3
|
+
import { API } from "./api.gen.js";
|
|
4
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
export { API, CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNode, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
|
package/dist/v1/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { K8SUtilsAPI } from "./api.utils.js";
|
|
4
4
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
//#region src/v1/index.ts
|
|
5
6
|
var v1_exports = /* @__PURE__ */ __exportAll({
|
|
6
7
|
API: () => K8SUtilsAPI,
|
|
7
8
|
CLUSTER_TRANSIENT_STATUSES: () => CLUSTER_TRANSIENT_STATUSES,
|
|
@@ -9,4 +10,5 @@ var v1_exports = /* @__PURE__ */ __exportAll({
|
|
|
9
10
|
POOL_TRANSIENT_STATUSES: () => POOL_TRANSIENT_STATUSES,
|
|
10
11
|
ValidationRules: () => validation_rules_gen_exports
|
|
11
12
|
});
|
|
12
|
-
|
|
13
|
+
//#endregion
|
|
14
|
+
export { K8SUtilsAPI as API, CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, v1_exports };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
|
-
|
|
3
|
+
//#region src/v1/marshalling.gen.ts
|
|
4
|
+
var unmarshalVersion = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Version' failed as data isn't a dictionary.`);
|
|
5
6
|
return {
|
|
6
7
|
availableAdmissionPlugins: data.available_admission_plugins,
|
|
@@ -38,11 +39,13 @@ var unmarshalClusterAutoscalerConfig = (data) => {
|
|
|
38
39
|
expander: data.expander,
|
|
39
40
|
expendablePodsPriorityCutoff: data.expendable_pods_priority_cutoff,
|
|
40
41
|
ignoreDaemonsetsUtilization: data.ignore_daemonsets_utilization,
|
|
42
|
+
logLevel: data.log_level,
|
|
41
43
|
maxGracefulTerminationSec: data.max_graceful_termination_sec,
|
|
42
44
|
scaleDownDelayAfterAdd: data.scale_down_delay_after_add,
|
|
43
45
|
scaleDownDisabled: data.scale_down_disabled,
|
|
44
46
|
scaleDownUnneededTime: data.scale_down_unneeded_time,
|
|
45
|
-
scaleDownUtilizationThreshold: data.scale_down_utilization_threshold
|
|
47
|
+
scaleDownUtilizationThreshold: data.scale_down_utilization_threshold,
|
|
48
|
+
skipNodesWithLocalStorage: data.skip_nodes_with_local_storage
|
|
46
49
|
};
|
|
47
50
|
};
|
|
48
51
|
var unmarshalClusterOpenIDConnectConfig = (data) => {
|
|
@@ -57,7 +60,7 @@ var unmarshalClusterOpenIDConnectConfig = (data) => {
|
|
|
57
60
|
usernamePrefix: data.username_prefix
|
|
58
61
|
};
|
|
59
62
|
};
|
|
60
|
-
|
|
63
|
+
var unmarshalCluster = (data) => {
|
|
61
64
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Cluster' failed as data isn't a dictionary.`);
|
|
62
65
|
return {
|
|
63
66
|
aclAvailable: data.acl_available,
|
|
@@ -91,7 +94,7 @@ const unmarshalCluster = (data) => {
|
|
|
91
94
|
version: data.version
|
|
92
95
|
};
|
|
93
96
|
};
|
|
94
|
-
|
|
97
|
+
var unmarshalNode = (data) => {
|
|
95
98
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Node' failed as data isn't a dictionary.`);
|
|
96
99
|
return {
|
|
97
100
|
clusterId: data.cluster_id,
|
|
@@ -124,7 +127,7 @@ var unmarshalPoolUpgradePolicy = (data) => {
|
|
|
124
127
|
maxUnavailable: data.max_unavailable
|
|
125
128
|
};
|
|
126
129
|
};
|
|
127
|
-
|
|
130
|
+
var unmarshalPool = (data) => {
|
|
128
131
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`);
|
|
129
132
|
return {
|
|
130
133
|
autohealing: data.autohealing,
|
|
@@ -165,7 +168,7 @@ var unmarshalACLRule = (data) => {
|
|
|
165
168
|
scalewayRanges: data.scaleway_ranges
|
|
166
169
|
};
|
|
167
170
|
};
|
|
168
|
-
|
|
171
|
+
var unmarshalAddClusterACLRulesResponse = (data) => {
|
|
169
172
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddClusterACLRulesResponse' failed as data isn't a dictionary.`);
|
|
170
173
|
return { rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule) };
|
|
171
174
|
};
|
|
@@ -177,7 +180,7 @@ var unmarshalExternalNodeCoreV1Taint = (data) => {
|
|
|
177
180
|
value: data.value
|
|
178
181
|
};
|
|
179
182
|
};
|
|
180
|
-
|
|
183
|
+
var unmarshalExternalNode = (data) => {
|
|
181
184
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNode' failed as data isn't a dictionary.`);
|
|
182
185
|
return {
|
|
183
186
|
clusterCa: data.cluster_ca,
|
|
@@ -196,14 +199,14 @@ const unmarshalExternalNode = (data) => {
|
|
|
196
199
|
runcVersion: data.runc_version
|
|
197
200
|
};
|
|
198
201
|
};
|
|
199
|
-
|
|
202
|
+
var unmarshalExternalNodeAuth = (data) => {
|
|
200
203
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNodeAuth' failed as data isn't a dictionary.`);
|
|
201
204
|
return {
|
|
202
205
|
metadataUrl: data.metadata_url,
|
|
203
206
|
nodeSecretKey: data.node_secret_key
|
|
204
207
|
};
|
|
205
208
|
};
|
|
206
|
-
|
|
209
|
+
var unmarshalListClusterACLRulesResponse = (data) => {
|
|
207
210
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterACLRulesResponse' failed as data isn't a dictionary.`);
|
|
208
211
|
return {
|
|
209
212
|
rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule),
|
|
@@ -225,46 +228,46 @@ var unmarshalClusterType = (data) => {
|
|
|
225
228
|
sla: data.sla
|
|
226
229
|
};
|
|
227
230
|
};
|
|
228
|
-
|
|
231
|
+
var unmarshalListClusterAvailableTypesResponse = (data) => {
|
|
229
232
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterAvailableTypesResponse' failed as data isn't a dictionary.`);
|
|
230
233
|
return {
|
|
231
234
|
clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
|
|
232
235
|
totalCount: data.total_count
|
|
233
236
|
};
|
|
234
237
|
};
|
|
235
|
-
|
|
238
|
+
var unmarshalListClusterAvailableVersionsResponse = (data) => {
|
|
236
239
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterAvailableVersionsResponse' failed as data isn't a dictionary.`);
|
|
237
240
|
return { versions: unmarshalArrayOfObject(data.versions, unmarshalVersion) };
|
|
238
241
|
};
|
|
239
|
-
|
|
242
|
+
var unmarshalListClusterTypesResponse = (data) => {
|
|
240
243
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary.`);
|
|
241
244
|
return {
|
|
242
245
|
clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
|
|
243
246
|
totalCount: data.total_count
|
|
244
247
|
};
|
|
245
248
|
};
|
|
246
|
-
|
|
249
|
+
var unmarshalListClustersResponse = (data) => {
|
|
247
250
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
|
|
248
251
|
return {
|
|
249
252
|
clusters: unmarshalArrayOfObject(data.clusters, unmarshalCluster),
|
|
250
253
|
totalCount: data.total_count
|
|
251
254
|
};
|
|
252
255
|
};
|
|
253
|
-
|
|
256
|
+
var unmarshalListNodesResponse = (data) => {
|
|
254
257
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodesResponse' failed as data isn't a dictionary.`);
|
|
255
258
|
return {
|
|
256
259
|
nodes: unmarshalArrayOfObject(data.nodes, unmarshalNode),
|
|
257
260
|
totalCount: data.total_count
|
|
258
261
|
};
|
|
259
262
|
};
|
|
260
|
-
|
|
263
|
+
var unmarshalListPoolsResponse = (data) => {
|
|
261
264
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary.`);
|
|
262
265
|
return {
|
|
263
266
|
pools: unmarshalArrayOfObject(data.pools, unmarshalPool),
|
|
264
267
|
totalCount: data.total_count
|
|
265
268
|
};
|
|
266
269
|
};
|
|
267
|
-
|
|
270
|
+
var unmarshalListVersionsResponse = (data) => {
|
|
268
271
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
|
|
269
272
|
return { versions: unmarshalArrayOfObject(data.versions, unmarshalVersion) };
|
|
270
273
|
};
|
|
@@ -276,7 +279,7 @@ var unmarshalNodeMetadataCoreV1Taint = (data) => {
|
|
|
276
279
|
value: data.value
|
|
277
280
|
};
|
|
278
281
|
};
|
|
279
|
-
|
|
282
|
+
var unmarshalNodeMetadata = (data) => {
|
|
280
283
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeMetadata' failed as data isn't a dictionary.`);
|
|
281
284
|
return {
|
|
282
285
|
clusterCa: data.cluster_ca,
|
|
@@ -300,7 +303,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
300
303
|
updaterBinVersion: data.updater_bin_version
|
|
301
304
|
};
|
|
302
305
|
};
|
|
303
|
-
|
|
306
|
+
var unmarshalSetClusterACLRulesResponse = (data) => {
|
|
304
307
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetClusterACLRulesResponse' failed as data isn't a dictionary.`);
|
|
305
308
|
return { rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule) };
|
|
306
309
|
};
|
|
@@ -314,7 +317,7 @@ var marshalACLRuleRequest = (request, defaults) => ({
|
|
|
314
317
|
value: request.scalewayRanges
|
|
315
318
|
}])
|
|
316
319
|
});
|
|
317
|
-
|
|
320
|
+
var marshalAddClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
|
|
318
321
|
var marshalMaintenanceWindow = (request, defaults) => ({
|
|
319
322
|
day: request.day,
|
|
320
323
|
start_hour: request.startHour
|
|
@@ -338,11 +341,13 @@ var marshalCreateClusterRequestAutoscalerConfig = (request, defaults) => ({
|
|
|
338
341
|
expander: request.expander,
|
|
339
342
|
expendable_pods_priority_cutoff: request.expendablePodsPriorityCutoff,
|
|
340
343
|
ignore_daemonsets_utilization: request.ignoreDaemonsetsUtilization,
|
|
344
|
+
log_level: request.logLevel,
|
|
341
345
|
max_graceful_termination_sec: request.maxGracefulTerminationSec,
|
|
342
346
|
scale_down_delay_after_add: request.scaleDownDelayAfterAdd,
|
|
343
347
|
scale_down_disabled: request.scaleDownDisabled,
|
|
344
348
|
scale_down_unneeded_time: request.scaleDownUnneededTime,
|
|
345
|
-
scale_down_utilization_threshold: request.scaleDownUtilizationThreshold
|
|
349
|
+
scale_down_utilization_threshold: request.scaleDownUtilizationThreshold,
|
|
350
|
+
skip_nodes_with_local_storage: request.skipNodesWithLocalStorage
|
|
346
351
|
});
|
|
347
352
|
var marshalCreateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
|
|
348
353
|
client_id: request.clientId,
|
|
@@ -375,7 +380,7 @@ var marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
375
380
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(request.upgradePolicy, defaults) : void 0,
|
|
376
381
|
zone: request.zone
|
|
377
382
|
});
|
|
378
|
-
|
|
383
|
+
var marshalCreateClusterRequest = (request, defaults) => ({
|
|
379
384
|
admission_plugins: request.admissionPlugins,
|
|
380
385
|
apiserver_cert_sans: request.apiserverCertSans,
|
|
381
386
|
auto_upgrade: request.autoUpgrade !== void 0 ? marshalCreateClusterRequestAutoUpgrade(request.autoUpgrade, defaults) : void 0,
|
|
@@ -407,7 +412,7 @@ var marshalCreatePoolRequestUpgradePolicy = (request, defaults) => ({
|
|
|
407
412
|
max_surge: request.maxSurge,
|
|
408
413
|
max_unavailable: request.maxUnavailable
|
|
409
414
|
});
|
|
410
|
-
|
|
415
|
+
var marshalCreatePoolRequest = (request, defaults) => ({
|
|
411
416
|
autohealing: request.autohealing,
|
|
412
417
|
autoscaling: request.autoscaling,
|
|
413
418
|
container_runtime: request.containerRuntime,
|
|
@@ -429,11 +434,11 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
429
434
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy, defaults) : void 0,
|
|
430
435
|
zone: request.zone ?? defaults.defaultZone
|
|
431
436
|
});
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
+
var marshalSetClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
|
|
438
|
+
var marshalSetClusterTypeRequest = (request, defaults) => ({ type: request.type });
|
|
439
|
+
var marshalSetPoolLabelsRequest = (request, defaults) => ({ labels: request.labels !== void 0 ? request.labels : void 0 });
|
|
440
|
+
var marshalSetPoolStartupTaintsRequest = (request, defaults) => ({ startup_taints: request.startupTaints !== void 0 ? request.startupTaints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
|
|
441
|
+
var marshalSetPoolTaintsRequest = (request, defaults) => ({ taints: request.taints !== void 0 ? request.taints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
|
|
437
442
|
var marshalUpdateClusterRequestAutoUpgrade = (request, defaults) => ({
|
|
438
443
|
enable: request.enable,
|
|
439
444
|
maintenance_window: request.maintenanceWindow !== void 0 ? marshalMaintenanceWindow(request.maintenanceWindow, defaults) : void 0
|
|
@@ -444,11 +449,13 @@ var marshalUpdateClusterRequestAutoscalerConfig = (request, defaults) => ({
|
|
|
444
449
|
expander: request.expander,
|
|
445
450
|
expendable_pods_priority_cutoff: request.expendablePodsPriorityCutoff,
|
|
446
451
|
ignore_daemonsets_utilization: request.ignoreDaemonsetsUtilization,
|
|
452
|
+
log_level: request.logLevel,
|
|
447
453
|
max_graceful_termination_sec: request.maxGracefulTerminationSec,
|
|
448
454
|
scale_down_delay_after_add: request.scaleDownDelayAfterAdd,
|
|
449
455
|
scale_down_disabled: request.scaleDownDisabled,
|
|
450
456
|
scale_down_unneeded_time: request.scaleDownUnneededTime,
|
|
451
|
-
scale_down_utilization_threshold: request.scaleDownUtilizationThreshold
|
|
457
|
+
scale_down_utilization_threshold: request.scaleDownUtilizationThreshold,
|
|
458
|
+
skip_nodes_with_local_storage: request.skipNodesWithLocalStorage
|
|
452
459
|
});
|
|
453
460
|
var marshalUpdateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
|
|
454
461
|
client_id: request.clientId,
|
|
@@ -459,7 +466,7 @@ var marshalUpdateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
|
|
|
459
466
|
username_claim: request.usernameClaim,
|
|
460
467
|
username_prefix: request.usernamePrefix
|
|
461
468
|
});
|
|
462
|
-
|
|
469
|
+
var marshalUpdateClusterRequest = (request, defaults) => ({
|
|
463
470
|
admission_plugins: request.admissionPlugins,
|
|
464
471
|
apiserver_cert_sans: request.apiserverCertSans,
|
|
465
472
|
auto_upgrade: request.autoUpgrade !== void 0 ? marshalUpdateClusterRequestAutoUpgrade(request.autoUpgrade, defaults) : void 0,
|
|
@@ -474,7 +481,7 @@ var marshalUpdatePoolRequestUpgradePolicy = (request, defaults) => ({
|
|
|
474
481
|
max_surge: request.maxSurge,
|
|
475
482
|
max_unavailable: request.maxUnavailable
|
|
476
483
|
});
|
|
477
|
-
|
|
484
|
+
var marshalUpdatePoolRequest = (request, defaults) => ({
|
|
478
485
|
autohealing: request.autohealing,
|
|
479
486
|
autoscaling: request.autoscaling,
|
|
480
487
|
kubelet_args: request.kubeletArgs,
|
|
@@ -485,9 +492,10 @@ const marshalUpdatePoolRequest = (request, defaults) => ({
|
|
|
485
492
|
tags: request.tags,
|
|
486
493
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalUpdatePoolRequestUpgradePolicy(request.upgradePolicy, defaults) : void 0
|
|
487
494
|
});
|
|
488
|
-
|
|
495
|
+
var marshalUpgradeClusterRequest = (request, defaults) => ({
|
|
489
496
|
upgrade_pools: request.upgradePools,
|
|
490
497
|
version: request.version
|
|
491
498
|
});
|
|
492
|
-
|
|
499
|
+
var marshalUpgradePoolRequest = (request, defaults) => ({ version: request.version });
|
|
500
|
+
//#endregion
|
|
493
501
|
export { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNode, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: "k8s";
|
|
3
|
+
readonly version: "v1";
|
|
4
|
+
readonly folderName: "k8Sv1";
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: "API";
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: "listClusters";
|
|
9
|
+
readonly protoName: "ListClusters";
|
|
10
|
+
readonly paramsType: "ListClustersRequest";
|
|
11
|
+
readonly returnType: "ListClustersResponse";
|
|
12
|
+
readonly isList: true;
|
|
13
|
+
readonly paginationType: "offset";
|
|
14
|
+
readonly pageParamKey: "page";
|
|
15
|
+
readonly listItemType: "Cluster";
|
|
16
|
+
readonly isPrivate: false;
|
|
17
|
+
readonly description: "\"";
|
|
18
|
+
}, {
|
|
19
|
+
readonly methodName: "getCluster";
|
|
20
|
+
readonly protoName: "GetCluster";
|
|
21
|
+
readonly paramsType: "GetClusterRequest";
|
|
22
|
+
readonly returnType: "Cluster";
|
|
23
|
+
readonly isList: false;
|
|
24
|
+
readonly paginationType: "none";
|
|
25
|
+
readonly isPrivate: false;
|
|
26
|
+
readonly description: "\"";
|
|
27
|
+
readonly hasWaiter: true;
|
|
28
|
+
}, {
|
|
29
|
+
readonly methodName: "listClusterAvailableVersions";
|
|
30
|
+
readonly protoName: "ListClusterAvailableVersions";
|
|
31
|
+
readonly paramsType: "ListClusterAvailableVersionsRequest";
|
|
32
|
+
readonly returnType: "ListClusterAvailableVersionsResponse";
|
|
33
|
+
readonly isList: false;
|
|
34
|
+
readonly paginationType: "none";
|
|
35
|
+
readonly isPrivate: false;
|
|
36
|
+
readonly description: "\"";
|
|
37
|
+
}, {
|
|
38
|
+
readonly methodName: "listClusterAvailableTypes";
|
|
39
|
+
readonly protoName: "ListClusterAvailableTypes";
|
|
40
|
+
readonly paramsType: "ListClusterAvailableTypesRequest";
|
|
41
|
+
readonly returnType: "ListClusterAvailableTypesResponse";
|
|
42
|
+
readonly isList: false;
|
|
43
|
+
readonly paginationType: "none";
|
|
44
|
+
readonly isPrivate: false;
|
|
45
|
+
readonly description: "\"";
|
|
46
|
+
}, {
|
|
47
|
+
readonly methodName: "_getClusterKubeConfig";
|
|
48
|
+
readonly protoName: "GetClusterKubeConfig";
|
|
49
|
+
readonly paramsType: "GetClusterKubeConfigRequest";
|
|
50
|
+
readonly returnType: "Blob";
|
|
51
|
+
readonly isList: false;
|
|
52
|
+
readonly paginationType: "none";
|
|
53
|
+
readonly isPrivate: true;
|
|
54
|
+
readonly description: "\"";
|
|
55
|
+
}, {
|
|
56
|
+
readonly methodName: "listClusterACLRules";
|
|
57
|
+
readonly protoName: "ListClusterACLRules";
|
|
58
|
+
readonly paramsType: "ListClusterACLRulesRequest";
|
|
59
|
+
readonly returnType: "ListClusterACLRulesResponse";
|
|
60
|
+
readonly isList: true;
|
|
61
|
+
readonly paginationType: "offset";
|
|
62
|
+
readonly pageParamKey: "page";
|
|
63
|
+
readonly listItemType: "ACLRule";
|
|
64
|
+
readonly isPrivate: false;
|
|
65
|
+
readonly description: "\"";
|
|
66
|
+
}, {
|
|
67
|
+
readonly methodName: "listPools";
|
|
68
|
+
readonly protoName: "ListPools";
|
|
69
|
+
readonly paramsType: "ListPoolsRequest";
|
|
70
|
+
readonly returnType: "ListPoolsResponse";
|
|
71
|
+
readonly isList: true;
|
|
72
|
+
readonly paginationType: "offset";
|
|
73
|
+
readonly pageParamKey: "page";
|
|
74
|
+
readonly listItemType: "Pool";
|
|
75
|
+
readonly isPrivate: false;
|
|
76
|
+
readonly description: "\"";
|
|
77
|
+
}, {
|
|
78
|
+
readonly methodName: "getPool";
|
|
79
|
+
readonly protoName: "GetPool";
|
|
80
|
+
readonly paramsType: "GetPoolRequest";
|
|
81
|
+
readonly returnType: "Pool";
|
|
82
|
+
readonly isList: false;
|
|
83
|
+
readonly paginationType: "none";
|
|
84
|
+
readonly isPrivate: false;
|
|
85
|
+
readonly description: "\"";
|
|
86
|
+
readonly hasWaiter: true;
|
|
87
|
+
}, {
|
|
88
|
+
readonly methodName: "getNodeMetadata";
|
|
89
|
+
readonly protoName: "GetNodeMetadata";
|
|
90
|
+
readonly paramsType: "GetNodeMetadataRequest";
|
|
91
|
+
readonly returnType: "NodeMetadata";
|
|
92
|
+
readonly isList: false;
|
|
93
|
+
readonly paginationType: "none";
|
|
94
|
+
readonly isPrivate: false;
|
|
95
|
+
readonly description: "\"";
|
|
96
|
+
}, {
|
|
97
|
+
readonly methodName: "listNodes";
|
|
98
|
+
readonly protoName: "ListNodes";
|
|
99
|
+
readonly paramsType: "ListNodesRequest";
|
|
100
|
+
readonly returnType: "ListNodesResponse";
|
|
101
|
+
readonly isList: true;
|
|
102
|
+
readonly paginationType: "offset";
|
|
103
|
+
readonly pageParamKey: "page";
|
|
104
|
+
readonly listItemType: "Node";
|
|
105
|
+
readonly isPrivate: false;
|
|
106
|
+
readonly description: "\"";
|
|
107
|
+
}, {
|
|
108
|
+
readonly methodName: "getNode";
|
|
109
|
+
readonly protoName: "GetNode";
|
|
110
|
+
readonly paramsType: "GetNodeRequest";
|
|
111
|
+
readonly returnType: "Node";
|
|
112
|
+
readonly isList: false;
|
|
113
|
+
readonly paginationType: "none";
|
|
114
|
+
readonly isPrivate: false;
|
|
115
|
+
readonly description: "\"";
|
|
116
|
+
readonly hasWaiter: true;
|
|
117
|
+
}, {
|
|
118
|
+
readonly methodName: "listVersions";
|
|
119
|
+
readonly protoName: "ListVersions";
|
|
120
|
+
readonly paramsType: "ListVersionsRequest";
|
|
121
|
+
readonly returnType: "ListVersionsResponse";
|
|
122
|
+
readonly isList: false;
|
|
123
|
+
readonly paginationType: "none";
|
|
124
|
+
readonly isPrivate: false;
|
|
125
|
+
readonly description: "\"";
|
|
126
|
+
}, {
|
|
127
|
+
readonly methodName: "getVersion";
|
|
128
|
+
readonly protoName: "GetVersion";
|
|
129
|
+
readonly paramsType: "GetVersionRequest";
|
|
130
|
+
readonly returnType: "Version";
|
|
131
|
+
readonly isList: false;
|
|
132
|
+
readonly paginationType: "none";
|
|
133
|
+
readonly isPrivate: false;
|
|
134
|
+
readonly description: "\"";
|
|
135
|
+
}, {
|
|
136
|
+
readonly methodName: "listClusterTypes";
|
|
137
|
+
readonly protoName: "ListClusterTypes";
|
|
138
|
+
readonly paramsType: "ListClusterTypesRequest";
|
|
139
|
+
readonly returnType: "ListClusterTypesResponse";
|
|
140
|
+
readonly isList: true;
|
|
141
|
+
readonly paginationType: "offset";
|
|
142
|
+
readonly pageParamKey: "page";
|
|
143
|
+
readonly listItemType: "ClusterType";
|
|
144
|
+
readonly isPrivate: false;
|
|
145
|
+
readonly description: "\"";
|
|
146
|
+
}];
|
|
147
|
+
}];
|
|
148
|
+
};
|
|
149
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
//#region src/v1/metadata.gen.ts
|
|
2
|
+
var queriesMetadata = {
|
|
3
|
+
namespace: "k8s",
|
|
4
|
+
version: "v1",
|
|
5
|
+
folderName: "k8Sv1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "listClusters",
|
|
11
|
+
protoName: "ListClusters",
|
|
12
|
+
paramsType: "ListClustersRequest",
|
|
13
|
+
returnType: "ListClustersResponse",
|
|
14
|
+
isList: true,
|
|
15
|
+
paginationType: "offset",
|
|
16
|
+
pageParamKey: "page",
|
|
17
|
+
listItemType: "Cluster",
|
|
18
|
+
isPrivate: false,
|
|
19
|
+
description: "\""
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
methodName: "getCluster",
|
|
23
|
+
protoName: "GetCluster",
|
|
24
|
+
paramsType: "GetClusterRequest",
|
|
25
|
+
returnType: "Cluster",
|
|
26
|
+
isList: false,
|
|
27
|
+
paginationType: "none",
|
|
28
|
+
isPrivate: false,
|
|
29
|
+
description: "\"",
|
|
30
|
+
hasWaiter: true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
methodName: "listClusterAvailableVersions",
|
|
34
|
+
protoName: "ListClusterAvailableVersions",
|
|
35
|
+
paramsType: "ListClusterAvailableVersionsRequest",
|
|
36
|
+
returnType: "ListClusterAvailableVersionsResponse",
|
|
37
|
+
isList: false,
|
|
38
|
+
paginationType: "none",
|
|
39
|
+
isPrivate: false,
|
|
40
|
+
description: "\""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
methodName: "listClusterAvailableTypes",
|
|
44
|
+
protoName: "ListClusterAvailableTypes",
|
|
45
|
+
paramsType: "ListClusterAvailableTypesRequest",
|
|
46
|
+
returnType: "ListClusterAvailableTypesResponse",
|
|
47
|
+
isList: false,
|
|
48
|
+
paginationType: "none",
|
|
49
|
+
isPrivate: false,
|
|
50
|
+
description: "\""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
methodName: "_getClusterKubeConfig",
|
|
54
|
+
protoName: "GetClusterKubeConfig",
|
|
55
|
+
paramsType: "GetClusterKubeConfigRequest",
|
|
56
|
+
returnType: "Blob",
|
|
57
|
+
isList: false,
|
|
58
|
+
paginationType: "none",
|
|
59
|
+
isPrivate: true,
|
|
60
|
+
description: "\""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
methodName: "listClusterACLRules",
|
|
64
|
+
protoName: "ListClusterACLRules",
|
|
65
|
+
paramsType: "ListClusterACLRulesRequest",
|
|
66
|
+
returnType: "ListClusterACLRulesResponse",
|
|
67
|
+
isList: true,
|
|
68
|
+
paginationType: "offset",
|
|
69
|
+
pageParamKey: "page",
|
|
70
|
+
listItemType: "ACLRule",
|
|
71
|
+
isPrivate: false,
|
|
72
|
+
description: "\""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
methodName: "listPools",
|
|
76
|
+
protoName: "ListPools",
|
|
77
|
+
paramsType: "ListPoolsRequest",
|
|
78
|
+
returnType: "ListPoolsResponse",
|
|
79
|
+
isList: true,
|
|
80
|
+
paginationType: "offset",
|
|
81
|
+
pageParamKey: "page",
|
|
82
|
+
listItemType: "Pool",
|
|
83
|
+
isPrivate: false,
|
|
84
|
+
description: "\""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
methodName: "getPool",
|
|
88
|
+
protoName: "GetPool",
|
|
89
|
+
paramsType: "GetPoolRequest",
|
|
90
|
+
returnType: "Pool",
|
|
91
|
+
isList: false,
|
|
92
|
+
paginationType: "none",
|
|
93
|
+
isPrivate: false,
|
|
94
|
+
description: "\"",
|
|
95
|
+
hasWaiter: true
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
methodName: "getNodeMetadata",
|
|
99
|
+
protoName: "GetNodeMetadata",
|
|
100
|
+
paramsType: "GetNodeMetadataRequest",
|
|
101
|
+
returnType: "NodeMetadata",
|
|
102
|
+
isList: false,
|
|
103
|
+
paginationType: "none",
|
|
104
|
+
isPrivate: false,
|
|
105
|
+
description: "\""
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
methodName: "listNodes",
|
|
109
|
+
protoName: "ListNodes",
|
|
110
|
+
paramsType: "ListNodesRequest",
|
|
111
|
+
returnType: "ListNodesResponse",
|
|
112
|
+
isList: true,
|
|
113
|
+
paginationType: "offset",
|
|
114
|
+
pageParamKey: "page",
|
|
115
|
+
listItemType: "Node",
|
|
116
|
+
isPrivate: false,
|
|
117
|
+
description: "\""
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
methodName: "getNode",
|
|
121
|
+
protoName: "GetNode",
|
|
122
|
+
paramsType: "GetNodeRequest",
|
|
123
|
+
returnType: "Node",
|
|
124
|
+
isList: false,
|
|
125
|
+
paginationType: "none",
|
|
126
|
+
isPrivate: false,
|
|
127
|
+
description: "\"",
|
|
128
|
+
hasWaiter: true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
methodName: "listVersions",
|
|
132
|
+
protoName: "ListVersions",
|
|
133
|
+
paramsType: "ListVersionsRequest",
|
|
134
|
+
returnType: "ListVersionsResponse",
|
|
135
|
+
isList: false,
|
|
136
|
+
paginationType: "none",
|
|
137
|
+
isPrivate: false,
|
|
138
|
+
description: "\""
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
methodName: "getVersion",
|
|
142
|
+
protoName: "GetVersion",
|
|
143
|
+
paramsType: "GetVersionRequest",
|
|
144
|
+
returnType: "Version",
|
|
145
|
+
isList: false,
|
|
146
|
+
paginationType: "none",
|
|
147
|
+
isPrivate: false,
|
|
148
|
+
description: "\""
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
methodName: "listClusterTypes",
|
|
152
|
+
protoName: "ListClusterTypes",
|
|
153
|
+
paramsType: "ListClusterTypesRequest",
|
|
154
|
+
returnType: "ListClusterTypesResponse",
|
|
155
|
+
isList: true,
|
|
156
|
+
paginationType: "offset",
|
|
157
|
+
pageParamKey: "page",
|
|
158
|
+
listItemType: "ClusterType",
|
|
159
|
+
isPrivate: false,
|
|
160
|
+
description: "\""
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}]
|
|
164
|
+
};
|
|
165
|
+
//#endregion
|
|
166
|
+
export { queriesMetadata };
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -102,6 +102,14 @@ export interface ClusterAutoscalerConfig {
|
|
|
102
102
|
* Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
|
|
103
103
|
*/
|
|
104
104
|
maxGracefulTerminationSec: number;
|
|
105
|
+
/**
|
|
106
|
+
* Cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath, defaults to true.
|
|
107
|
+
*/
|
|
108
|
+
skipNodesWithLocalStorage: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Cluster autoscaler logging level expressed from 0 to 4 (4 being the more verbose), defaults to 2. see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-increase-the-information-that-the-ca-is-logging for details.
|
|
111
|
+
*/
|
|
112
|
+
logLevel: number;
|
|
105
113
|
}
|
|
106
114
|
export interface ClusterOpenIDConnectConfig {
|
|
107
115
|
/**
|
|
@@ -228,6 +236,14 @@ export interface CreateClusterRequestAutoscalerConfig {
|
|
|
228
236
|
* Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
|
|
229
237
|
*/
|
|
230
238
|
maxGracefulTerminationSec?: number;
|
|
239
|
+
/**
|
|
240
|
+
* Cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath, defaults to true.
|
|
241
|
+
*/
|
|
242
|
+
skipNodesWithLocalStorage?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Cluster autoscaler logging level expressed from 0 to 4 (4 being the more verbose), defaults to 2. see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-increase-the-information-that-the-ca-is-logging for details.
|
|
245
|
+
*/
|
|
246
|
+
logLevel?: number;
|
|
231
247
|
}
|
|
232
248
|
export interface CreateClusterRequestOpenIDConnectConfig {
|
|
233
249
|
/**
|
|
@@ -541,7 +557,7 @@ export interface Cluster {
|
|
|
541
557
|
/**
|
|
542
558
|
* @deprecated Defines whether ACL is available on the cluster.
|
|
543
559
|
*/
|
|
544
|
-
aclAvailable
|
|
560
|
+
aclAvailable?: boolean;
|
|
545
561
|
/**
|
|
546
562
|
* IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
|
|
547
563
|
*/
|
|
@@ -782,6 +798,14 @@ export interface UpdateClusterRequestAutoscalerConfig {
|
|
|
782
798
|
* Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
|
|
783
799
|
*/
|
|
784
800
|
maxGracefulTerminationSec?: number;
|
|
801
|
+
/**
|
|
802
|
+
* Cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath, defaults to true.
|
|
803
|
+
*/
|
|
804
|
+
skipNodesWithLocalStorage?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Cluster autoscaler logging level expressed from 0 to 4 (4 being the more verbose), defaults to 2. see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-increase-the-information-that-the-ca-is-logging for details.
|
|
807
|
+
*/
|
|
808
|
+
logLevel?: number;
|
|
785
809
|
}
|
|
786
810
|
export interface UpdateClusterRequestOpenIDConnectConfig {
|
|
787
811
|
/**
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
ACLRuleRequest: () => ACLRuleRequest,
|
|
4
5
|
CoreV1Taint: () => CoreV1Taint,
|
|
@@ -18,8 +19,8 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
18
19
|
UpdateClusterRequestOpenIDConnectConfig: () => UpdateClusterRequestOpenIDConnectConfig,
|
|
19
20
|
UpgradeClusterRequest: () => UpgradeClusterRequest
|
|
20
21
|
});
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
var ACLRuleRequest = { description: { maxLength: 2e3 } };
|
|
23
|
+
var CoreV1Taint = {
|
|
23
24
|
key: {
|
|
24
25
|
maxLength: 316,
|
|
25
26
|
minLength: 1,
|
|
@@ -27,7 +28,7 @@ const CoreV1Taint = {
|
|
|
27
28
|
},
|
|
28
29
|
value: { maxLength: 63 }
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
var CreateClusterRequest = {
|
|
31
32
|
description: { maxLength: 4096 },
|
|
32
33
|
name: {
|
|
33
34
|
maxLength: 100,
|
|
@@ -36,36 +37,36 @@ const CreateClusterRequest = {
|
|
|
36
37
|
type: { maxLength: 100 },
|
|
37
38
|
version: { maxLength: 10 }
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
var CreateClusterRequestAutoscalerConfig = {
|
|
40
41
|
scaleDownDelayAfterAdd: { maxLength: 100 },
|
|
41
42
|
scaleDownUtilizationThreshold: {
|
|
42
43
|
greaterThan: 0,
|
|
43
44
|
lessThan: 1
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
+
var CreateClusterRequestOpenIDConnectConfig = {
|
|
47
48
|
clientId: { maxLength: 255 },
|
|
48
49
|
groupsPrefix: { maxLength: 100 },
|
|
49
50
|
issuerUrl: { maxLength: 255 },
|
|
50
51
|
usernameClaim: { maxLength: 100 },
|
|
51
52
|
usernamePrefix: { maxLength: 100 }
|
|
52
53
|
};
|
|
53
|
-
|
|
54
|
+
var CreateClusterRequestPoolConfig = { name: {
|
|
54
55
|
maxLength: 100,
|
|
55
56
|
minLength: 1
|
|
56
57
|
} };
|
|
57
|
-
|
|
58
|
+
var CreatePoolRequest = { name: {
|
|
58
59
|
maxLength: 100,
|
|
59
60
|
minLength: 1
|
|
60
61
|
} };
|
|
61
|
-
|
|
62
|
+
var ListClusterTypesRequest = {
|
|
62
63
|
page: { greaterThan: 0 },
|
|
63
64
|
pageSize: {
|
|
64
65
|
greaterThan: 0,
|
|
65
66
|
lessThanOrEqual: 100
|
|
66
67
|
}
|
|
67
68
|
};
|
|
68
|
-
|
|
69
|
+
var ListClustersRequest = {
|
|
69
70
|
name: { minLength: 1 },
|
|
70
71
|
page: { greaterThan: 0 },
|
|
71
72
|
pageSize: {
|
|
@@ -73,7 +74,7 @@ const ListClustersRequest = {
|
|
|
73
74
|
lessThanOrEqual: 100
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
+
var ListNodesRequest = {
|
|
77
78
|
name: { minLength: 1 },
|
|
78
79
|
page: { greaterThan: 0 },
|
|
79
80
|
pageSize: {
|
|
@@ -81,7 +82,7 @@ const ListNodesRequest = {
|
|
|
81
82
|
lessThanOrEqual: 100
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
+
var ListPoolsRequest = {
|
|
85
86
|
name: { minLength: 1 },
|
|
86
87
|
page: { greaterThan: 0 },
|
|
87
88
|
pageSize: {
|
|
@@ -89,28 +90,29 @@ const ListPoolsRequest = {
|
|
|
89
90
|
lessThanOrEqual: 100
|
|
90
91
|
}
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
var MaintenanceWindow = { startHour: { lessThanOrEqual: 23 } };
|
|
94
|
+
var SetClusterTypeRequest = { type: { maxLength: 100 } };
|
|
95
|
+
var UpdateClusterRequest = {
|
|
95
96
|
description: { maxLength: 4096 },
|
|
96
97
|
name: {
|
|
97
98
|
maxLength: 100,
|
|
98
99
|
minLength: 1
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
|
-
|
|
102
|
+
var UpdateClusterRequestAutoscalerConfig = {
|
|
102
103
|
scaleDownDelayAfterAdd: { maxLength: 100 },
|
|
103
104
|
scaleDownUtilizationThreshold: {
|
|
104
105
|
greaterThan: 0,
|
|
105
106
|
lessThan: 1
|
|
106
107
|
}
|
|
107
108
|
};
|
|
108
|
-
|
|
109
|
+
var UpdateClusterRequestOpenIDConnectConfig = {
|
|
109
110
|
clientId: { maxLength: 255 },
|
|
110
111
|
groupsPrefix: { maxLength: 100 },
|
|
111
112
|
issuerUrl: { maxLength: 255 },
|
|
112
113
|
usernameClaim: { maxLength: 100 },
|
|
113
114
|
usernamePrefix: { maxLength: 100 }
|
|
114
115
|
};
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
var UpgradeClusterRequest = { version: { maxLength: 10 } };
|
|
117
|
+
//#endregion
|
|
118
|
+
export { ACLRuleRequest, CoreV1Taint, CreateClusterRequest, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreatePoolRequest, ListClusterTypesRequest, ListClustersRequest, ListNodesRequest, ListPoolsRequest, MaintenanceWindow, SetClusterTypeRequest, UpdateClusterRequest, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpgradeClusterRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-k8s",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Scaleway SDK k8s",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
29
|
+
"@scaleway/random-name": "5.1.4",
|
|
30
|
+
"@scaleway/sdk-std": "2.2.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|