@scaleway/sdk-k8s 1.5.0 → 1.6.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/v1/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
1
|
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
-
import
|
|
2
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
+
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreateExternalNodeRequest, CreatePoolRequest, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClustersRequest, ListClustersResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MigratePoolsToNewImagesRequest, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Kubernetes API.
|
|
6
6
|
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
3
|
export * from './marshalling.gen';
|
|
4
|
-
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander,
|
|
4
|
+
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, Cluster, ClusterAutoscalerConfig, ClusterAutoUpgrade, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CNI, CreateClusterRequest, CreateClusterRequestAutoscalerConfig, CreateClusterRequestAutoUpgrade, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreateExternalNodeRequest, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeAuth, ExternalNodeCoreV1Taint, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, MigratePoolsToNewImagesRequest, Node, NodeMetadata, NodeMetadataCoreV1Taint, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -146,9 +146,12 @@ const unmarshalCluster = (data) => {
|
|
|
146
146
|
newImagesEnabled: data.new_images_enabled,
|
|
147
147
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
148
148
|
organizationId: data.organization_id,
|
|
149
|
+
podCidr: data.pod_cidr,
|
|
149
150
|
privateNetworkId: data.private_network_id,
|
|
150
151
|
projectId: data.project_id,
|
|
151
152
|
region: data.region,
|
|
153
|
+
serviceCidr: data.service_cidr,
|
|
154
|
+
serviceDnsIp: data.service_dns_ip,
|
|
152
155
|
status: data.status,
|
|
153
156
|
tags: data.tags,
|
|
154
157
|
type: data.type,
|
|
@@ -387,6 +390,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
387
390
|
externalIp: data.external_ip,
|
|
388
391
|
hasGpu: data.has_gpu,
|
|
389
392
|
id: data.id,
|
|
393
|
+
installerTags: data.installer_tags,
|
|
390
394
|
kubeletConfig: data.kubelet_config,
|
|
391
395
|
name: data.name,
|
|
392
396
|
nodeLabels: data.node_labels,
|
|
@@ -395,7 +399,12 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
395
399
|
unmarshalNodeMetadataCoreV1Taint
|
|
396
400
|
),
|
|
397
401
|
poolVersion: data.pool_version,
|
|
398
|
-
|
|
402
|
+
providerId: data.provider_id,
|
|
403
|
+
repoUri: data.repo_uri,
|
|
404
|
+
resolvconfPath: data.resolvconf_path,
|
|
405
|
+
updaterBinPath: data.updater_bin_path,
|
|
406
|
+
updaterBinUrl: data.updater_bin_url,
|
|
407
|
+
updaterBinVersion: data.updater_bin_version
|
|
399
408
|
};
|
|
400
409
|
};
|
|
401
410
|
const unmarshalSetClusterACLRulesResponse = (data) => {
|
|
@@ -486,10 +495,13 @@ const marshalCreateClusterRequest = (request, defaults) => ({
|
|
|
486
495
|
open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(
|
|
487
496
|
request.openIdConnectConfig
|
|
488
497
|
) : void 0,
|
|
498
|
+
pod_cidr: request.podCidr,
|
|
489
499
|
pools: request.pools !== void 0 ? request.pools.map(
|
|
490
500
|
(elt) => marshalCreateClusterRequestPoolConfig(elt)
|
|
491
501
|
) : void 0,
|
|
492
502
|
private_network_id: request.privateNetworkId,
|
|
503
|
+
service_cidr: request.serviceCidr,
|
|
504
|
+
service_dns_ip: request.serviceDnsIp,
|
|
493
505
|
tags: request.tags,
|
|
494
506
|
type: request.type,
|
|
495
507
|
version: request.version,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, Cluster, CreateClusterRequest, CreatePoolRequest, ExternalNode, ExternalNodeAuth, ListClusterACLRulesResponse, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse,
|
|
2
|
+
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, Cluster, CreateClusterRequest, CreatePoolRequest, ExternalNode, ExternalNodeAuth, ListClusterACLRulesResponse, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClustersResponse, ListClusterTypesResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, MigratePoolsToNewImagesRequest, Node, NodeMetadata, Pool, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
|
|
3
3
|
export declare const unmarshalPool: (data: unknown) => Pool;
|
|
4
4
|
export declare const unmarshalVersion: (data: unknown) => Version;
|
|
5
5
|
export declare const unmarshalCluster: (data: unknown) => Cluster;
|
|
@@ -144,9 +144,12 @@ const unmarshalCluster = (data) => {
|
|
|
144
144
|
newImagesEnabled: data.new_images_enabled,
|
|
145
145
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
146
146
|
organizationId: data.organization_id,
|
|
147
|
+
podCidr: data.pod_cidr,
|
|
147
148
|
privateNetworkId: data.private_network_id,
|
|
148
149
|
projectId: data.project_id,
|
|
149
150
|
region: data.region,
|
|
151
|
+
serviceCidr: data.service_cidr,
|
|
152
|
+
serviceDnsIp: data.service_dns_ip,
|
|
150
153
|
status: data.status,
|
|
151
154
|
tags: data.tags,
|
|
152
155
|
type: data.type,
|
|
@@ -385,6 +388,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
385
388
|
externalIp: data.external_ip,
|
|
386
389
|
hasGpu: data.has_gpu,
|
|
387
390
|
id: data.id,
|
|
391
|
+
installerTags: data.installer_tags,
|
|
388
392
|
kubeletConfig: data.kubelet_config,
|
|
389
393
|
name: data.name,
|
|
390
394
|
nodeLabels: data.node_labels,
|
|
@@ -393,7 +397,12 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
393
397
|
unmarshalNodeMetadataCoreV1Taint
|
|
394
398
|
),
|
|
395
399
|
poolVersion: data.pool_version,
|
|
396
|
-
|
|
400
|
+
providerId: data.provider_id,
|
|
401
|
+
repoUri: data.repo_uri,
|
|
402
|
+
resolvconfPath: data.resolvconf_path,
|
|
403
|
+
updaterBinPath: data.updater_bin_path,
|
|
404
|
+
updaterBinUrl: data.updater_bin_url,
|
|
405
|
+
updaterBinVersion: data.updater_bin_version
|
|
397
406
|
};
|
|
398
407
|
};
|
|
399
408
|
const unmarshalSetClusterACLRulesResponse = (data) => {
|
|
@@ -484,10 +493,13 @@ const marshalCreateClusterRequest = (request, defaults) => ({
|
|
|
484
493
|
open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(
|
|
485
494
|
request.openIdConnectConfig
|
|
486
495
|
) : void 0,
|
|
496
|
+
pod_cidr: request.podCidr,
|
|
487
497
|
pools: request.pools !== void 0 ? request.pools.map(
|
|
488
498
|
(elt) => marshalCreateClusterRequestPoolConfig(elt)
|
|
489
499
|
) : void 0,
|
|
490
500
|
private_network_id: request.privateNetworkId,
|
|
501
|
+
service_cidr: request.serviceCidr,
|
|
502
|
+
service_dns_ip: request.serviceDnsIp,
|
|
491
503
|
tags: request.tags,
|
|
492
504
|
type: request.type,
|
|
493
505
|
version: request.version,
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -613,6 +613,18 @@ export interface Cluster {
|
|
|
613
613
|
* @deprecated Defines whether all pools are migrated to new images.
|
|
614
614
|
*/
|
|
615
615
|
newImagesEnabled?: boolean;
|
|
616
|
+
/**
|
|
617
|
+
* Subnet used for the Pod CIDR.
|
|
618
|
+
*/
|
|
619
|
+
podCidr: string;
|
|
620
|
+
/**
|
|
621
|
+
* Subnet used for the Service CIDR.
|
|
622
|
+
*/
|
|
623
|
+
serviceCidr: string;
|
|
624
|
+
/**
|
|
625
|
+
* IP used for the DNS Service.
|
|
626
|
+
*/
|
|
627
|
+
serviceDnsIp: string;
|
|
616
628
|
}
|
|
617
629
|
export interface Node {
|
|
618
630
|
/**
|
|
@@ -862,6 +874,18 @@ export type CreateClusterRequest = {
|
|
|
862
874
|
* Private network ID for internal cluster communication (cannot be changed later).
|
|
863
875
|
*/
|
|
864
876
|
privateNetworkId?: string;
|
|
877
|
+
/**
|
|
878
|
+
* Subnet used for the Pod CIDR (cannot be changed later).
|
|
879
|
+
*/
|
|
880
|
+
podCidr?: string;
|
|
881
|
+
/**
|
|
882
|
+
* Subnet used for the Service CIDR (cannot be changed later).
|
|
883
|
+
*/
|
|
884
|
+
serviceCidr?: string;
|
|
885
|
+
/**
|
|
886
|
+
* IP used for the DNS Service (cannot be changes later). If unset, default to Service CIDR's network + 10.
|
|
887
|
+
*/
|
|
888
|
+
serviceDnsIp?: string;
|
|
865
889
|
};
|
|
866
890
|
export type CreateExternalNodeRequest = {
|
|
867
891
|
/**
|
|
@@ -1337,9 +1361,15 @@ export interface NodeMetadata {
|
|
|
1337
1361
|
kubeletConfig: string;
|
|
1338
1362
|
nodeLabels: Record<string, string>;
|
|
1339
1363
|
nodeTaints: NodeMetadataCoreV1Taint[];
|
|
1364
|
+
providerId: string;
|
|
1365
|
+
resolvconfPath: string;
|
|
1340
1366
|
hasGpu: boolean;
|
|
1341
1367
|
externalIp: string;
|
|
1342
1368
|
repoUri: string;
|
|
1369
|
+
installerTags: string[];
|
|
1370
|
+
updaterBinUrl: string;
|
|
1371
|
+
updaterBinVersion: string;
|
|
1372
|
+
updaterBinPath: string;
|
|
1343
1373
|
}
|
|
1344
1374
|
export type RebootNodeRequest = {
|
|
1345
1375
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-k8s",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Scaleway SDK k8s",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"directory": "packages_generated/k8s"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=20.19.
|
|
29
|
+
"node": ">=20.19.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@scaleway/random-name": "5.1.
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
32
|
+
"@scaleway/random-name": "5.1.2",
|
|
33
|
+
"@scaleway/sdk-std": "1.0.6"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.3.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.3.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|