@scaleway/sdk-k8s 1.6.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 +6 -6
- 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 +5 -1
- package/dist/v1/marshalling.gen.d.ts +1 -1
- package/dist/v1/marshalling.gen.js +5 -1
- package/dist/v1/types.gen.d.ts +14 -1
- package/package.json +4 -4
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
|
-
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
2
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type {
|
|
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.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,
|
|
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) => {
|
|
@@ -402,6 +405,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
402
405
|
providerId: data.provider_id,
|
|
403
406
|
repoUri: data.repo_uri,
|
|
404
407
|
resolvconfPath: data.resolvconf_path,
|
|
408
|
+
templateArgs: data.template_args,
|
|
405
409
|
updaterBinPath: data.updater_bin_path,
|
|
406
410
|
updaterBinUrl: data.updater_bin_url,
|
|
407
411
|
updaterBinVersion: data.updater_bin_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, 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) => {
|
|
@@ -400,6 +403,7 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
400
403
|
providerId: data.provider_id,
|
|
401
404
|
repoUri: data.repo_uri,
|
|
402
405
|
resolvconfPath: data.resolvconf_path,
|
|
406
|
+
templateArgs: data.template_args,
|
|
403
407
|
updaterBinPath: data.updater_bin_path,
|
|
404
408
|
updaterBinUrl: data.updater_bin_url,
|
|
405
409
|
updaterBinVersion: data.updater_bin_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
|
/**
|
|
@@ -1363,6 +1375,7 @@ export interface NodeMetadata {
|
|
|
1363
1375
|
nodeTaints: NodeMetadataCoreV1Taint[];
|
|
1364
1376
|
providerId: string;
|
|
1365
1377
|
resolvconfPath: string;
|
|
1378
|
+
templateArgs: Record<string, string>;
|
|
1366
1379
|
hasGpu: boolean;
|
|
1367
1380
|
externalIp: string;
|
|
1368
1381
|
repoUri: string;
|
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": [
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "1.0
|
|
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",
|