@scaleway/sdk-k8s 1.4.1 → 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.cjs +7 -6
- package/dist/v1/api.gen.d.ts +7 -4
- package/dist/v1/api.gen.js +8 -7
- package/dist/v1/index.gen.d.ts +1 -1
- package/dist/v1/marshalling.gen.cjs +16 -1
- package/dist/v1/marshalling.gen.d.ts +1 -1
- package/dist/v1/marshalling.gen.js +16 -1
- package/dist/v1/types.gen.d.ts +42 -0
- package/package.json +6 -6
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -7,12 +7,13 @@ const jsonContentHeaders = {
|
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
9
9
|
class API extends sdkClient.API {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
15
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
16
|
+
});
|
|
16
17
|
pageOfListClusters = (request = {}) => this.client.fetch(
|
|
17
18
|
{
|
|
18
19
|
method: "GET",
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
1
2
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type {
|
|
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, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MigratePoolsToNewImagesRequest, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
|
|
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
|
|
|
7
7
|
This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
|
|
8
8
|
*/
|
|
9
9
|
export declare class API extends ParentAPI {
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static readonly LOCALITY: ApiLocality;
|
|
12
15
|
protected pageOfListClusters: (request?: Readonly<ListClustersRequest>) => Promise<ListClustersResponse>;
|
|
13
16
|
/**
|
|
14
17
|
* List Clusters. List all existing Kubernetes clusters in a specific region.
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { API as API$1, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
1
|
+
import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
2
2
|
import { CLUSTER_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { unmarshalListClustersResponse, marshalCreateClusterRequest, unmarshalCluster, marshalUpdateClusterRequest, marshalUpgradeClusterRequest, marshalSetClusterTypeRequest, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterACLRulesResponse, marshalAddClusterACLRulesRequest, unmarshalAddClusterACLRulesResponse, marshalSetClusterACLRulesRequest, unmarshalSetClusterACLRulesResponse, unmarshalListPoolsResponse, marshalCreatePoolRequest, unmarshalPool, marshalUpgradePoolRequest, marshalUpdatePoolRequest, marshalMigratePoolsToNewImagesRequest, unmarshalNodeMetadata, unmarshalExternalNodeAuth, unmarshalExternalNode, unmarshalListNodesResponse, unmarshalNode, unmarshalListVersionsResponse, unmarshalVersion, unmarshalListClusterTypesResponse } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
7
7
|
class API extends API$1 {
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Locality of this API.
|
|
10
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
11
|
+
*/
|
|
12
|
+
static LOCALITY = toApiLocality({
|
|
13
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
14
|
+
});
|
|
14
15
|
pageOfListClusters = (request = {}) => this.client.fetch(
|
|
15
16
|
{
|
|
16
17
|
method: "GET",
|
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';
|
|
@@ -37,6 +37,7 @@ const unmarshalPool = (data) => {
|
|
|
37
37
|
region: data.region,
|
|
38
38
|
rootVolumeSize: data.root_volume_size,
|
|
39
39
|
rootVolumeType: data.root_volume_type,
|
|
40
|
+
securityGroupId: data.security_group_id,
|
|
40
41
|
size: data.size,
|
|
41
42
|
status: data.status,
|
|
42
43
|
tags: data.tags,
|
|
@@ -145,9 +146,12 @@ const unmarshalCluster = (data) => {
|
|
|
145
146
|
newImagesEnabled: data.new_images_enabled,
|
|
146
147
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
147
148
|
organizationId: data.organization_id,
|
|
149
|
+
podCidr: data.pod_cidr,
|
|
148
150
|
privateNetworkId: data.private_network_id,
|
|
149
151
|
projectId: data.project_id,
|
|
150
152
|
region: data.region,
|
|
153
|
+
serviceCidr: data.service_cidr,
|
|
154
|
+
serviceDnsIp: data.service_dns_ip,
|
|
151
155
|
status: data.status,
|
|
152
156
|
tags: data.tags,
|
|
153
157
|
type: data.type,
|
|
@@ -386,6 +390,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
386
390
|
externalIp: data.external_ip,
|
|
387
391
|
hasGpu: data.has_gpu,
|
|
388
392
|
id: data.id,
|
|
393
|
+
installerTags: data.installer_tags,
|
|
389
394
|
kubeletConfig: data.kubelet_config,
|
|
390
395
|
name: data.name,
|
|
391
396
|
nodeLabels: data.node_labels,
|
|
@@ -394,7 +399,12 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
394
399
|
unmarshalNodeMetadataCoreV1Taint
|
|
395
400
|
),
|
|
396
401
|
poolVersion: data.pool_version,
|
|
397
|
-
|
|
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
|
|
398
408
|
};
|
|
399
409
|
};
|
|
400
410
|
const unmarshalSetClusterACLRulesResponse = (data) => {
|
|
@@ -463,6 +473,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
463
473
|
public_ip_disabled: request.publicIpDisabled,
|
|
464
474
|
root_volume_size: request.rootVolumeSize,
|
|
465
475
|
root_volume_type: request.rootVolumeType,
|
|
476
|
+
security_group_id: request.securityGroupId,
|
|
466
477
|
size: request.size,
|
|
467
478
|
tags: request.tags,
|
|
468
479
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(
|
|
@@ -484,10 +495,13 @@ const marshalCreateClusterRequest = (request, defaults) => ({
|
|
|
484
495
|
open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(
|
|
485
496
|
request.openIdConnectConfig
|
|
486
497
|
) : void 0,
|
|
498
|
+
pod_cidr: request.podCidr,
|
|
487
499
|
pools: request.pools !== void 0 ? request.pools.map(
|
|
488
500
|
(elt) => marshalCreateClusterRequestPoolConfig(elt)
|
|
489
501
|
) : void 0,
|
|
490
502
|
private_network_id: request.privateNetworkId,
|
|
503
|
+
service_cidr: request.serviceCidr,
|
|
504
|
+
service_dns_ip: request.serviceDnsIp,
|
|
491
505
|
tags: request.tags,
|
|
492
506
|
type: request.type,
|
|
493
507
|
version: request.version,
|
|
@@ -521,6 +535,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
521
535
|
public_ip_disabled: request.publicIpDisabled,
|
|
522
536
|
root_volume_size: request.rootVolumeSize,
|
|
523
537
|
root_volume_type: request.rootVolumeType,
|
|
538
|
+
security_group_id: request.securityGroupId,
|
|
524
539
|
size: request.size,
|
|
525
540
|
tags: request.tags,
|
|
526
541
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy) : void 0,
|
|
@@ -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;
|
|
@@ -35,6 +35,7 @@ const unmarshalPool = (data) => {
|
|
|
35
35
|
region: data.region,
|
|
36
36
|
rootVolumeSize: data.root_volume_size,
|
|
37
37
|
rootVolumeType: data.root_volume_type,
|
|
38
|
+
securityGroupId: data.security_group_id,
|
|
38
39
|
size: data.size,
|
|
39
40
|
status: data.status,
|
|
40
41
|
tags: data.tags,
|
|
@@ -143,9 +144,12 @@ const unmarshalCluster = (data) => {
|
|
|
143
144
|
newImagesEnabled: data.new_images_enabled,
|
|
144
145
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
145
146
|
organizationId: data.organization_id,
|
|
147
|
+
podCidr: data.pod_cidr,
|
|
146
148
|
privateNetworkId: data.private_network_id,
|
|
147
149
|
projectId: data.project_id,
|
|
148
150
|
region: data.region,
|
|
151
|
+
serviceCidr: data.service_cidr,
|
|
152
|
+
serviceDnsIp: data.service_dns_ip,
|
|
149
153
|
status: data.status,
|
|
150
154
|
tags: data.tags,
|
|
151
155
|
type: data.type,
|
|
@@ -384,6 +388,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
384
388
|
externalIp: data.external_ip,
|
|
385
389
|
hasGpu: data.has_gpu,
|
|
386
390
|
id: data.id,
|
|
391
|
+
installerTags: data.installer_tags,
|
|
387
392
|
kubeletConfig: data.kubelet_config,
|
|
388
393
|
name: data.name,
|
|
389
394
|
nodeLabels: data.node_labels,
|
|
@@ -392,7 +397,12 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
392
397
|
unmarshalNodeMetadataCoreV1Taint
|
|
393
398
|
),
|
|
394
399
|
poolVersion: data.pool_version,
|
|
395
|
-
|
|
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
|
|
396
406
|
};
|
|
397
407
|
};
|
|
398
408
|
const unmarshalSetClusterACLRulesResponse = (data) => {
|
|
@@ -461,6 +471,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
461
471
|
public_ip_disabled: request.publicIpDisabled,
|
|
462
472
|
root_volume_size: request.rootVolumeSize,
|
|
463
473
|
root_volume_type: request.rootVolumeType,
|
|
474
|
+
security_group_id: request.securityGroupId,
|
|
464
475
|
size: request.size,
|
|
465
476
|
tags: request.tags,
|
|
466
477
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(
|
|
@@ -482,10 +493,13 @@ const marshalCreateClusterRequest = (request, defaults) => ({
|
|
|
482
493
|
open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(
|
|
483
494
|
request.openIdConnectConfig
|
|
484
495
|
) : void 0,
|
|
496
|
+
pod_cidr: request.podCidr,
|
|
485
497
|
pools: request.pools !== void 0 ? request.pools.map(
|
|
486
498
|
(elt) => marshalCreateClusterRequestPoolConfig(elt)
|
|
487
499
|
) : void 0,
|
|
488
500
|
private_network_id: request.privateNetworkId,
|
|
501
|
+
service_cidr: request.serviceCidr,
|
|
502
|
+
service_dns_ip: request.serviceDnsIp,
|
|
489
503
|
tags: request.tags,
|
|
490
504
|
type: request.type,
|
|
491
505
|
version: request.version,
|
|
@@ -519,6 +533,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
519
533
|
public_ip_disabled: request.publicIpDisabled,
|
|
520
534
|
root_volume_size: request.rootVolumeSize,
|
|
521
535
|
root_volume_type: request.rootVolumeType,
|
|
536
|
+
security_group_id: request.securityGroupId,
|
|
522
537
|
size: request.size,
|
|
523
538
|
tags: request.tags,
|
|
524
539
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy) : void 0,
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -215,6 +215,10 @@ export interface Pool {
|
|
|
215
215
|
* @deprecated Defines whether the pool is migrated to new images.
|
|
216
216
|
*/
|
|
217
217
|
newImagesEnabled?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone.
|
|
220
|
+
*/
|
|
221
|
+
securityGroupId: string;
|
|
218
222
|
/**
|
|
219
223
|
* Cluster region of the pool.
|
|
220
224
|
*/
|
|
@@ -410,6 +414,10 @@ export interface CreateClusterRequestPoolConfig {
|
|
|
410
414
|
* Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway.
|
|
411
415
|
*/
|
|
412
416
|
publicIpDisabled: boolean;
|
|
417
|
+
/**
|
|
418
|
+
* Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone.
|
|
419
|
+
*/
|
|
420
|
+
securityGroupId?: string;
|
|
413
421
|
}
|
|
414
422
|
export interface CreatePoolRequestUpgradePolicy {
|
|
415
423
|
maxUnavailable?: number;
|
|
@@ -605,6 +613,18 @@ export interface Cluster {
|
|
|
605
613
|
* @deprecated Defines whether all pools are migrated to new images.
|
|
606
614
|
*/
|
|
607
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;
|
|
608
628
|
}
|
|
609
629
|
export interface Node {
|
|
610
630
|
/**
|
|
@@ -854,6 +874,18 @@ export type CreateClusterRequest = {
|
|
|
854
874
|
* Private network ID for internal cluster communication (cannot be changed later).
|
|
855
875
|
*/
|
|
856
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;
|
|
857
889
|
};
|
|
858
890
|
export type CreateExternalNodeRequest = {
|
|
859
891
|
/**
|
|
@@ -938,6 +970,10 @@ export type CreatePoolRequest = {
|
|
|
938
970
|
* Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway.
|
|
939
971
|
*/
|
|
940
972
|
publicIpDisabled: boolean;
|
|
973
|
+
/**
|
|
974
|
+
* Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone.
|
|
975
|
+
*/
|
|
976
|
+
securityGroupId?: string;
|
|
941
977
|
};
|
|
942
978
|
export type DeleteACLRuleRequest = {
|
|
943
979
|
/**
|
|
@@ -1325,9 +1361,15 @@ export interface NodeMetadata {
|
|
|
1325
1361
|
kubeletConfig: string;
|
|
1326
1362
|
nodeLabels: Record<string, string>;
|
|
1327
1363
|
nodeTaints: NodeMetadataCoreV1Taint[];
|
|
1364
|
+
providerId: string;
|
|
1365
|
+
resolvconfPath: string;
|
|
1328
1366
|
hasGpu: boolean;
|
|
1329
1367
|
externalIp: string;
|
|
1330
1368
|
repoUri: string;
|
|
1369
|
+
installerTags: string[];
|
|
1370
|
+
updaterBinUrl: string;
|
|
1371
|
+
updaterBinVersion: string;
|
|
1372
|
+
updaterBinPath: string;
|
|
1331
1373
|
}
|
|
1332
1374
|
export type RebootNodeRequest = {
|
|
1333
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.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|