@scaleway/sdk-k8s 2.6.0 → 2.6.2
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 +31 -29
- 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,
|
|
@@ -57,7 +58,7 @@ var unmarshalClusterOpenIDConnectConfig = (data) => {
|
|
|
57
58
|
usernamePrefix: data.username_prefix
|
|
58
59
|
};
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
+
var unmarshalCluster = (data) => {
|
|
61
62
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Cluster' failed as data isn't a dictionary.`);
|
|
62
63
|
return {
|
|
63
64
|
aclAvailable: data.acl_available,
|
|
@@ -91,7 +92,7 @@ const unmarshalCluster = (data) => {
|
|
|
91
92
|
version: data.version
|
|
92
93
|
};
|
|
93
94
|
};
|
|
94
|
-
|
|
95
|
+
var unmarshalNode = (data) => {
|
|
95
96
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Node' failed as data isn't a dictionary.`);
|
|
96
97
|
return {
|
|
97
98
|
clusterId: data.cluster_id,
|
|
@@ -124,7 +125,7 @@ var unmarshalPoolUpgradePolicy = (data) => {
|
|
|
124
125
|
maxUnavailable: data.max_unavailable
|
|
125
126
|
};
|
|
126
127
|
};
|
|
127
|
-
|
|
128
|
+
var unmarshalPool = (data) => {
|
|
128
129
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`);
|
|
129
130
|
return {
|
|
130
131
|
autohealing: data.autohealing,
|
|
@@ -165,7 +166,7 @@ var unmarshalACLRule = (data) => {
|
|
|
165
166
|
scalewayRanges: data.scaleway_ranges
|
|
166
167
|
};
|
|
167
168
|
};
|
|
168
|
-
|
|
169
|
+
var unmarshalAddClusterACLRulesResponse = (data) => {
|
|
169
170
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddClusterACLRulesResponse' failed as data isn't a dictionary.`);
|
|
170
171
|
return { rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule) };
|
|
171
172
|
};
|
|
@@ -177,7 +178,7 @@ var unmarshalExternalNodeCoreV1Taint = (data) => {
|
|
|
177
178
|
value: data.value
|
|
178
179
|
};
|
|
179
180
|
};
|
|
180
|
-
|
|
181
|
+
var unmarshalExternalNode = (data) => {
|
|
181
182
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNode' failed as data isn't a dictionary.`);
|
|
182
183
|
return {
|
|
183
184
|
clusterCa: data.cluster_ca,
|
|
@@ -196,14 +197,14 @@ const unmarshalExternalNode = (data) => {
|
|
|
196
197
|
runcVersion: data.runc_version
|
|
197
198
|
};
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
+
var unmarshalExternalNodeAuth = (data) => {
|
|
200
201
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNodeAuth' failed as data isn't a dictionary.`);
|
|
201
202
|
return {
|
|
202
203
|
metadataUrl: data.metadata_url,
|
|
203
204
|
nodeSecretKey: data.node_secret_key
|
|
204
205
|
};
|
|
205
206
|
};
|
|
206
|
-
|
|
207
|
+
var unmarshalListClusterACLRulesResponse = (data) => {
|
|
207
208
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterACLRulesResponse' failed as data isn't a dictionary.`);
|
|
208
209
|
return {
|
|
209
210
|
rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule),
|
|
@@ -225,46 +226,46 @@ var unmarshalClusterType = (data) => {
|
|
|
225
226
|
sla: data.sla
|
|
226
227
|
};
|
|
227
228
|
};
|
|
228
|
-
|
|
229
|
+
var unmarshalListClusterAvailableTypesResponse = (data) => {
|
|
229
230
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterAvailableTypesResponse' failed as data isn't a dictionary.`);
|
|
230
231
|
return {
|
|
231
232
|
clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
|
|
232
233
|
totalCount: data.total_count
|
|
233
234
|
};
|
|
234
235
|
};
|
|
235
|
-
|
|
236
|
+
var unmarshalListClusterAvailableVersionsResponse = (data) => {
|
|
236
237
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterAvailableVersionsResponse' failed as data isn't a dictionary.`);
|
|
237
238
|
return { versions: unmarshalArrayOfObject(data.versions, unmarshalVersion) };
|
|
238
239
|
};
|
|
239
|
-
|
|
240
|
+
var unmarshalListClusterTypesResponse = (data) => {
|
|
240
241
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary.`);
|
|
241
242
|
return {
|
|
242
243
|
clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
|
|
243
244
|
totalCount: data.total_count
|
|
244
245
|
};
|
|
245
246
|
};
|
|
246
|
-
|
|
247
|
+
var unmarshalListClustersResponse = (data) => {
|
|
247
248
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
|
|
248
249
|
return {
|
|
249
250
|
clusters: unmarshalArrayOfObject(data.clusters, unmarshalCluster),
|
|
250
251
|
totalCount: data.total_count
|
|
251
252
|
};
|
|
252
253
|
};
|
|
253
|
-
|
|
254
|
+
var unmarshalListNodesResponse = (data) => {
|
|
254
255
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodesResponse' failed as data isn't a dictionary.`);
|
|
255
256
|
return {
|
|
256
257
|
nodes: unmarshalArrayOfObject(data.nodes, unmarshalNode),
|
|
257
258
|
totalCount: data.total_count
|
|
258
259
|
};
|
|
259
260
|
};
|
|
260
|
-
|
|
261
|
+
var unmarshalListPoolsResponse = (data) => {
|
|
261
262
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary.`);
|
|
262
263
|
return {
|
|
263
264
|
pools: unmarshalArrayOfObject(data.pools, unmarshalPool),
|
|
264
265
|
totalCount: data.total_count
|
|
265
266
|
};
|
|
266
267
|
};
|
|
267
|
-
|
|
268
|
+
var unmarshalListVersionsResponse = (data) => {
|
|
268
269
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
|
|
269
270
|
return { versions: unmarshalArrayOfObject(data.versions, unmarshalVersion) };
|
|
270
271
|
};
|
|
@@ -276,7 +277,7 @@ var unmarshalNodeMetadataCoreV1Taint = (data) => {
|
|
|
276
277
|
value: data.value
|
|
277
278
|
};
|
|
278
279
|
};
|
|
279
|
-
|
|
280
|
+
var unmarshalNodeMetadata = (data) => {
|
|
280
281
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeMetadata' failed as data isn't a dictionary.`);
|
|
281
282
|
return {
|
|
282
283
|
clusterCa: data.cluster_ca,
|
|
@@ -300,7 +301,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
300
301
|
updaterBinVersion: data.updater_bin_version
|
|
301
302
|
};
|
|
302
303
|
};
|
|
303
|
-
|
|
304
|
+
var unmarshalSetClusterACLRulesResponse = (data) => {
|
|
304
305
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetClusterACLRulesResponse' failed as data isn't a dictionary.`);
|
|
305
306
|
return { rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule) };
|
|
306
307
|
};
|
|
@@ -314,7 +315,7 @@ var marshalACLRuleRequest = (request, defaults) => ({
|
|
|
314
315
|
value: request.scalewayRanges
|
|
315
316
|
}])
|
|
316
317
|
});
|
|
317
|
-
|
|
318
|
+
var marshalAddClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
|
|
318
319
|
var marshalMaintenanceWindow = (request, defaults) => ({
|
|
319
320
|
day: request.day,
|
|
320
321
|
start_hour: request.startHour
|
|
@@ -375,7 +376,7 @@ var marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
375
376
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(request.upgradePolicy, defaults) : void 0,
|
|
376
377
|
zone: request.zone
|
|
377
378
|
});
|
|
378
|
-
|
|
379
|
+
var marshalCreateClusterRequest = (request, defaults) => ({
|
|
379
380
|
admission_plugins: request.admissionPlugins,
|
|
380
381
|
apiserver_cert_sans: request.apiserverCertSans,
|
|
381
382
|
auto_upgrade: request.autoUpgrade !== void 0 ? marshalCreateClusterRequestAutoUpgrade(request.autoUpgrade, defaults) : void 0,
|
|
@@ -407,7 +408,7 @@ var marshalCreatePoolRequestUpgradePolicy = (request, defaults) => ({
|
|
|
407
408
|
max_surge: request.maxSurge,
|
|
408
409
|
max_unavailable: request.maxUnavailable
|
|
409
410
|
});
|
|
410
|
-
|
|
411
|
+
var marshalCreatePoolRequest = (request, defaults) => ({
|
|
411
412
|
autohealing: request.autohealing,
|
|
412
413
|
autoscaling: request.autoscaling,
|
|
413
414
|
container_runtime: request.containerRuntime,
|
|
@@ -429,11 +430,11 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
429
430
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy, defaults) : void 0,
|
|
430
431
|
zone: request.zone ?? defaults.defaultZone
|
|
431
432
|
});
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
433
|
+
var marshalSetClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
|
|
434
|
+
var marshalSetClusterTypeRequest = (request, defaults) => ({ type: request.type });
|
|
435
|
+
var marshalSetPoolLabelsRequest = (request, defaults) => ({ labels: request.labels !== void 0 ? request.labels : void 0 });
|
|
436
|
+
var marshalSetPoolStartupTaintsRequest = (request, defaults) => ({ startup_taints: request.startupTaints !== void 0 ? request.startupTaints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
|
|
437
|
+
var marshalSetPoolTaintsRequest = (request, defaults) => ({ taints: request.taints !== void 0 ? request.taints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
|
|
437
438
|
var marshalUpdateClusterRequestAutoUpgrade = (request, defaults) => ({
|
|
438
439
|
enable: request.enable,
|
|
439
440
|
maintenance_window: request.maintenanceWindow !== void 0 ? marshalMaintenanceWindow(request.maintenanceWindow, defaults) : void 0
|
|
@@ -459,7 +460,7 @@ var marshalUpdateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
|
|
|
459
460
|
username_claim: request.usernameClaim,
|
|
460
461
|
username_prefix: request.usernamePrefix
|
|
461
462
|
});
|
|
462
|
-
|
|
463
|
+
var marshalUpdateClusterRequest = (request, defaults) => ({
|
|
463
464
|
admission_plugins: request.admissionPlugins,
|
|
464
465
|
apiserver_cert_sans: request.apiserverCertSans,
|
|
465
466
|
auto_upgrade: request.autoUpgrade !== void 0 ? marshalUpdateClusterRequestAutoUpgrade(request.autoUpgrade, defaults) : void 0,
|
|
@@ -474,7 +475,7 @@ var marshalUpdatePoolRequestUpgradePolicy = (request, defaults) => ({
|
|
|
474
475
|
max_surge: request.maxSurge,
|
|
475
476
|
max_unavailable: request.maxUnavailable
|
|
476
477
|
});
|
|
477
|
-
|
|
478
|
+
var marshalUpdatePoolRequest = (request, defaults) => ({
|
|
478
479
|
autohealing: request.autohealing,
|
|
479
480
|
autoscaling: request.autoscaling,
|
|
480
481
|
kubelet_args: request.kubeletArgs,
|
|
@@ -485,9 +486,10 @@ const marshalUpdatePoolRequest = (request, defaults) => ({
|
|
|
485
486
|
tags: request.tags,
|
|
486
487
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalUpdatePoolRequestUpgradePolicy(request.upgradePolicy, defaults) : void 0
|
|
487
488
|
});
|
|
488
|
-
|
|
489
|
+
var marshalUpgradeClusterRequest = (request, defaults) => ({
|
|
489
490
|
upgrade_pools: request.upgradePools,
|
|
490
491
|
version: request.version
|
|
491
492
|
});
|
|
492
|
-
|
|
493
|
+
var marshalUpgradePoolRequest = (request, defaults) => ({ version: request.version });
|
|
494
|
+
//#endregion
|
|
493
495
|
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 };
|
|
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.6.
|
|
3
|
+
"version": "2.6.2",
|
|
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",
|