@scaleway/sdk-k8s 1.5.0 → 1.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/index.gen.cjs +1 -1
- package/dist/index.gen.d.ts +1 -1
- package/dist/index.gen.js +1 -1
- package/dist/v1/api.gen.d.ts +5 -5
- package/dist/v1/api.utils.d.ts +2 -2
- package/dist/v1/content.gen.d.ts +1 -1
- package/dist/v1/index.d.ts +4 -4
- package/dist/v1/index.gen.d.ts +5 -5
- package/dist/v1/marshalling.gen.cjs +18 -2
- package/dist/v1/marshalling.gen.d.ts +1 -1
- package/dist/v1/marshalling.gen.js +18 -2
- package/dist/v1/types.gen.d.ts +44 -1
- package/package.json +6 -6
package/dist/index.gen.cjs
CHANGED
package/dist/index.gen.d.ts
CHANGED
package/dist/index.gen.js
CHANGED
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
2
|
import type { ApiLocality, WaitForOptions } 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, 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, 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.js';
|
|
4
4
|
/**
|
|
5
5
|
* Kubernetes API.
|
|
6
6
|
|
|
@@ -102,8 +102,8 @@ export declare class API extends ParentAPI {
|
|
|
102
102
|
* @returns A Promise of ListClusterACLRulesResponse
|
|
103
103
|
*/
|
|
104
104
|
listClusterACLRules: (request: Readonly<ListClusterACLRulesRequest>) => Promise<ListClusterACLRulesResponse> & {
|
|
105
|
-
all: () => Promise<import("./types.gen").ACLRule[]>;
|
|
106
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ACLRule[], void, void>;
|
|
105
|
+
all: () => Promise<import("./types.gen.js").ACLRule[]>;
|
|
106
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ACLRule[], void, void>;
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* Add new ACLs. Add new ACL rules for a specific cluster.
|
|
@@ -277,7 +277,7 @@ export declare class API extends ParentAPI {
|
|
|
277
277
|
* @returns A Promise of ListClusterTypesResponse
|
|
278
278
|
*/
|
|
279
279
|
listClusterTypes: (request?: Readonly<ListClusterTypesRequest>) => Promise<ListClusterTypesResponse> & {
|
|
280
|
-
all: () => Promise<import("./types.gen").ClusterType[]>;
|
|
281
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ClusterType[], void, void>;
|
|
280
|
+
all: () => Promise<import("./types.gen.js").ClusterType[]>;
|
|
281
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ClusterType[], void, void>;
|
|
282
282
|
};
|
|
283
283
|
}
|
package/dist/v1/api.utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { API } from './api.gen';
|
|
2
|
-
import type { GetClusterKubeConfigRequest } from './types.gen';
|
|
1
|
+
import { API } from './api.gen.js';
|
|
2
|
+
import type { GetClusterKubeConfigRequest } from './types.gen.js';
|
|
3
3
|
export declare class K8SUtilsAPI extends API {
|
|
4
4
|
/**
|
|
5
5
|
* Get configuration of a kube cluster.
|
package/dist/v1/content.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClusterStatus, NodeStatus, PoolStatus } from './types.gen';
|
|
1
|
+
import type { ClusterStatus, NodeStatus, PoolStatus } from './types.gen.js';
|
|
2
2
|
/** Lists transient statutes of the enum {@link ClusterStatus}. */
|
|
3
3
|
export declare const CLUSTER_TRANSIENT_STATUSES: ClusterStatus[];
|
|
4
4
|
/** Lists transient statutes of the enum {@link NodeStatus}. */
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { K8SUtilsAPI as API } from './api.utils';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export type * from './types.gen';
|
|
4
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
1
|
+
export { K8SUtilsAPI as API } from './api.utils.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export type * from './types.gen.js';
|
|
4
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export * from './marshalling.gen';
|
|
4
|
-
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, 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, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, 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, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen';
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
4
|
+
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, 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, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, 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, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen.js';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -59,9 +59,12 @@ const unmarshalVersion = (data) => {
|
|
|
59
59
|
availableContainerRuntimes: data.available_container_runtimes,
|
|
60
60
|
availableFeatureGates: data.available_feature_gates,
|
|
61
61
|
availableKubeletArgs: data.available_kubelet_args,
|
|
62
|
+
deprecatedAt: sdkClient.unmarshalDate(data.deprecated_at),
|
|
63
|
+
endOfLifeAt: sdkClient.unmarshalDate(data.end_of_life_at),
|
|
62
64
|
label: data.label,
|
|
63
65
|
name: data.name,
|
|
64
|
-
region: data.region
|
|
66
|
+
region: data.region,
|
|
67
|
+
releasedAt: sdkClient.unmarshalDate(data.released_at)
|
|
65
68
|
};
|
|
66
69
|
};
|
|
67
70
|
const unmarshalMaintenanceWindow = (data) => {
|
|
@@ -146,9 +149,12 @@ const unmarshalCluster = (data) => {
|
|
|
146
149
|
newImagesEnabled: data.new_images_enabled,
|
|
147
150
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
148
151
|
organizationId: data.organization_id,
|
|
152
|
+
podCidr: data.pod_cidr,
|
|
149
153
|
privateNetworkId: data.private_network_id,
|
|
150
154
|
projectId: data.project_id,
|
|
151
155
|
region: data.region,
|
|
156
|
+
serviceCidr: data.service_cidr,
|
|
157
|
+
serviceDnsIp: data.service_dns_ip,
|
|
152
158
|
status: data.status,
|
|
153
159
|
tags: data.tags,
|
|
154
160
|
type: data.type,
|
|
@@ -387,6 +393,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
387
393
|
externalIp: data.external_ip,
|
|
388
394
|
hasGpu: data.has_gpu,
|
|
389
395
|
id: data.id,
|
|
396
|
+
installerTags: data.installer_tags,
|
|
390
397
|
kubeletConfig: data.kubelet_config,
|
|
391
398
|
name: data.name,
|
|
392
399
|
nodeLabels: data.node_labels,
|
|
@@ -395,7 +402,13 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
395
402
|
unmarshalNodeMetadataCoreV1Taint
|
|
396
403
|
),
|
|
397
404
|
poolVersion: data.pool_version,
|
|
398
|
-
|
|
405
|
+
providerId: data.provider_id,
|
|
406
|
+
repoUri: data.repo_uri,
|
|
407
|
+
resolvconfPath: data.resolvconf_path,
|
|
408
|
+
templateArgs: data.template_args,
|
|
409
|
+
updaterBinPath: data.updater_bin_path,
|
|
410
|
+
updaterBinUrl: data.updater_bin_url,
|
|
411
|
+
updaterBinVersion: data.updater_bin_version
|
|
399
412
|
};
|
|
400
413
|
};
|
|
401
414
|
const unmarshalSetClusterACLRulesResponse = (data) => {
|
|
@@ -486,10 +499,13 @@ const marshalCreateClusterRequest = (request, defaults) => ({
|
|
|
486
499
|
open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(
|
|
487
500
|
request.openIdConnectConfig
|
|
488
501
|
) : void 0,
|
|
502
|
+
pod_cidr: request.podCidr,
|
|
489
503
|
pools: request.pools !== void 0 ? request.pools.map(
|
|
490
504
|
(elt) => marshalCreateClusterRequestPoolConfig(elt)
|
|
491
505
|
) : void 0,
|
|
492
506
|
private_network_id: request.privateNetworkId,
|
|
507
|
+
service_cidr: request.serviceCidr,
|
|
508
|
+
service_dns_ip: request.serviceDnsIp,
|
|
493
509
|
tags: request.tags,
|
|
494
510
|
type: request.type,
|
|
495
511
|
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, ListClusterTypesResponse, ListClustersResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, MigratePoolsToNewImagesRequest, Node, NodeMetadata, Pool, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
|
|
2
|
+
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, Cluster, CreateClusterRequest, CreatePoolRequest, ExternalNode, ExternalNodeAuth, ListClusterACLRulesResponse, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClusterTypesResponse, ListClustersResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, MigratePoolsToNewImagesRequest, Node, NodeMetadata, Pool, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen.js';
|
|
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;
|
|
@@ -57,9 +57,12 @@ const unmarshalVersion = (data) => {
|
|
|
57
57
|
availableContainerRuntimes: data.available_container_runtimes,
|
|
58
58
|
availableFeatureGates: data.available_feature_gates,
|
|
59
59
|
availableKubeletArgs: data.available_kubelet_args,
|
|
60
|
+
deprecatedAt: unmarshalDate(data.deprecated_at),
|
|
61
|
+
endOfLifeAt: unmarshalDate(data.end_of_life_at),
|
|
60
62
|
label: data.label,
|
|
61
63
|
name: data.name,
|
|
62
|
-
region: data.region
|
|
64
|
+
region: data.region,
|
|
65
|
+
releasedAt: unmarshalDate(data.released_at)
|
|
63
66
|
};
|
|
64
67
|
};
|
|
65
68
|
const unmarshalMaintenanceWindow = (data) => {
|
|
@@ -144,9 +147,12 @@ const unmarshalCluster = (data) => {
|
|
|
144
147
|
newImagesEnabled: data.new_images_enabled,
|
|
145
148
|
openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
|
|
146
149
|
organizationId: data.organization_id,
|
|
150
|
+
podCidr: data.pod_cidr,
|
|
147
151
|
privateNetworkId: data.private_network_id,
|
|
148
152
|
projectId: data.project_id,
|
|
149
153
|
region: data.region,
|
|
154
|
+
serviceCidr: data.service_cidr,
|
|
155
|
+
serviceDnsIp: data.service_dns_ip,
|
|
150
156
|
status: data.status,
|
|
151
157
|
tags: data.tags,
|
|
152
158
|
type: data.type,
|
|
@@ -385,6 +391,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
385
391
|
externalIp: data.external_ip,
|
|
386
392
|
hasGpu: data.has_gpu,
|
|
387
393
|
id: data.id,
|
|
394
|
+
installerTags: data.installer_tags,
|
|
388
395
|
kubeletConfig: data.kubelet_config,
|
|
389
396
|
name: data.name,
|
|
390
397
|
nodeLabels: data.node_labels,
|
|
@@ -393,7 +400,13 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
393
400
|
unmarshalNodeMetadataCoreV1Taint
|
|
394
401
|
),
|
|
395
402
|
poolVersion: data.pool_version,
|
|
396
|
-
|
|
403
|
+
providerId: data.provider_id,
|
|
404
|
+
repoUri: data.repo_uri,
|
|
405
|
+
resolvconfPath: data.resolvconf_path,
|
|
406
|
+
templateArgs: data.template_args,
|
|
407
|
+
updaterBinPath: data.updater_bin_path,
|
|
408
|
+
updaterBinUrl: data.updater_bin_url,
|
|
409
|
+
updaterBinVersion: data.updater_bin_version
|
|
397
410
|
};
|
|
398
411
|
};
|
|
399
412
|
const unmarshalSetClusterACLRulesResponse = (data) => {
|
|
@@ -484,10 +497,13 @@ const marshalCreateClusterRequest = (request, defaults) => ({
|
|
|
484
497
|
open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(
|
|
485
498
|
request.openIdConnectConfig
|
|
486
499
|
) : void 0,
|
|
500
|
+
pod_cidr: request.podCidr,
|
|
487
501
|
pools: request.pools !== void 0 ? request.pools.map(
|
|
488
502
|
(elt) => marshalCreateClusterRequestPoolConfig(elt)
|
|
489
503
|
) : void 0,
|
|
490
504
|
private_network_id: request.privateNetworkId,
|
|
505
|
+
service_cidr: request.serviceCidr,
|
|
506
|
+
service_dns_ip: request.serviceDnsIp,
|
|
491
507
|
tags: request.tags,
|
|
492
508
|
type: request.type,
|
|
493
509
|
version: request.version,
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Region as ScwRegion, Zone as ScwZone } from '@scaleway/sdk-client';
|
|
2
2
|
export type AutoscalerEstimator = 'unknown_estimator' | 'binpacking';
|
|
3
3
|
export type AutoscalerExpander = 'unknown_expander' | 'random' | 'most_pods' | 'least_waste' | 'priority' | 'price';
|
|
4
|
-
export type CNI = 'unknown_cni' | 'cilium' | 'calico' | 'weave' | 'flannel' | 'kilo' | 'none';
|
|
4
|
+
export type CNI = 'unknown_cni' | 'cilium' | 'calico' | 'weave' | 'flannel' | 'kilo' | 'none' | 'cilium_native';
|
|
5
5
|
export type ClusterStatus = 'unknown' | 'creating' | 'ready' | 'deleting' | 'deleted' | 'updating' | 'locked' | 'pool_required';
|
|
6
6
|
export type ClusterTypeAvailability = 'available' | 'scarce' | 'shortage';
|
|
7
7
|
export type ClusterTypeResiliency = 'unknown_resiliency' | 'standard' | 'high_availability';
|
|
@@ -503,6 +503,18 @@ export interface Version {
|
|
|
503
503
|
* Supported kubelet arguments for this version.
|
|
504
504
|
*/
|
|
505
505
|
availableKubeletArgs: Record<string, string>;
|
|
506
|
+
/**
|
|
507
|
+
* Date from which this version will no longer be available for provisioning.
|
|
508
|
+
*/
|
|
509
|
+
deprecatedAt?: Date;
|
|
510
|
+
/**
|
|
511
|
+
* Date from which any remaining clusters on this version will begin to be forcibly upgraded to the next minor version.
|
|
512
|
+
*/
|
|
513
|
+
endOfLifeAt?: Date;
|
|
514
|
+
/**
|
|
515
|
+
* Date at which this version was made available by Kapsule product.
|
|
516
|
+
*/
|
|
517
|
+
releasedAt?: Date;
|
|
506
518
|
}
|
|
507
519
|
export interface Cluster {
|
|
508
520
|
/**
|
|
@@ -613,6 +625,18 @@ export interface Cluster {
|
|
|
613
625
|
* @deprecated Defines whether all pools are migrated to new images.
|
|
614
626
|
*/
|
|
615
627
|
newImagesEnabled?: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Subnet used for the Pod CIDR.
|
|
630
|
+
*/
|
|
631
|
+
podCidr: string;
|
|
632
|
+
/**
|
|
633
|
+
* Subnet used for the Service CIDR.
|
|
634
|
+
*/
|
|
635
|
+
serviceCidr: string;
|
|
636
|
+
/**
|
|
637
|
+
* IP used for the DNS Service.
|
|
638
|
+
*/
|
|
639
|
+
serviceDnsIp: string;
|
|
616
640
|
}
|
|
617
641
|
export interface Node {
|
|
618
642
|
/**
|
|
@@ -862,6 +886,18 @@ export type CreateClusterRequest = {
|
|
|
862
886
|
* Private network ID for internal cluster communication (cannot be changed later).
|
|
863
887
|
*/
|
|
864
888
|
privateNetworkId?: string;
|
|
889
|
+
/**
|
|
890
|
+
* Subnet used for the Pod CIDR (cannot be changed later).
|
|
891
|
+
*/
|
|
892
|
+
podCidr?: string;
|
|
893
|
+
/**
|
|
894
|
+
* Subnet used for the Service CIDR (cannot be changed later).
|
|
895
|
+
*/
|
|
896
|
+
serviceCidr?: string;
|
|
897
|
+
/**
|
|
898
|
+
* IP used for the DNS Service (cannot be changes later). If unset, default to Service CIDR's network + 10.
|
|
899
|
+
*/
|
|
900
|
+
serviceDnsIp?: string;
|
|
865
901
|
};
|
|
866
902
|
export type CreateExternalNodeRequest = {
|
|
867
903
|
/**
|
|
@@ -1337,9 +1373,16 @@ export interface NodeMetadata {
|
|
|
1337
1373
|
kubeletConfig: string;
|
|
1338
1374
|
nodeLabels: Record<string, string>;
|
|
1339
1375
|
nodeTaints: NodeMetadataCoreV1Taint[];
|
|
1376
|
+
providerId: string;
|
|
1377
|
+
resolvconfPath: string;
|
|
1378
|
+
templateArgs: Record<string, string>;
|
|
1340
1379
|
hasGpu: boolean;
|
|
1341
1380
|
externalIp: string;
|
|
1342
1381
|
repoUri: string;
|
|
1382
|
+
installerTags: string[];
|
|
1383
|
+
updaterBinUrl: string;
|
|
1384
|
+
updaterBinVersion: string;
|
|
1385
|
+
updaterBinPath: string;
|
|
1343
1386
|
}
|
|
1344
1387
|
export type RebootNodeRequest = {
|
|
1345
1388
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-k8s",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.3.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.3.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|