@scaleway/sdk-k8s 1.4.1 → 1.5.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
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,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
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';
|
|
4
4
|
/**
|
|
5
5
|
* Kubernetes API.
|
|
@@ -7,8 +7,11 @@ import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExterna
|
|
|
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",
|
|
@@ -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,
|
|
@@ -463,6 +464,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
463
464
|
public_ip_disabled: request.publicIpDisabled,
|
|
464
465
|
root_volume_size: request.rootVolumeSize,
|
|
465
466
|
root_volume_type: request.rootVolumeType,
|
|
467
|
+
security_group_id: request.securityGroupId,
|
|
466
468
|
size: request.size,
|
|
467
469
|
tags: request.tags,
|
|
468
470
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(
|
|
@@ -521,6 +523,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
521
523
|
public_ip_disabled: request.publicIpDisabled,
|
|
522
524
|
root_volume_size: request.rootVolumeSize,
|
|
523
525
|
root_volume_type: request.rootVolumeType,
|
|
526
|
+
security_group_id: request.securityGroupId,
|
|
524
527
|
size: request.size,
|
|
525
528
|
tags: request.tags,
|
|
526
529
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy) : void 0,
|
|
@@ -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,
|
|
@@ -461,6 +462,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
461
462
|
public_ip_disabled: request.publicIpDisabled,
|
|
462
463
|
root_volume_size: request.rootVolumeSize,
|
|
463
464
|
root_volume_type: request.rootVolumeType,
|
|
465
|
+
security_group_id: request.securityGroupId,
|
|
464
466
|
size: request.size,
|
|
465
467
|
tags: request.tags,
|
|
466
468
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(
|
|
@@ -519,6 +521,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
519
521
|
public_ip_disabled: request.publicIpDisabled,
|
|
520
522
|
root_volume_size: request.rootVolumeSize,
|
|
521
523
|
root_volume_type: request.rootVolumeType,
|
|
524
|
+
security_group_id: request.securityGroupId,
|
|
522
525
|
size: request.size,
|
|
523
526
|
tags: request.tags,
|
|
524
527
|
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;
|
|
@@ -938,6 +946,10 @@ export type CreatePoolRequest = {
|
|
|
938
946
|
* 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
947
|
*/
|
|
940
948
|
publicIpDisabled: boolean;
|
|
949
|
+
/**
|
|
950
|
+
* 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.
|
|
951
|
+
*/
|
|
952
|
+
securityGroupId?: string;
|
|
941
953
|
};
|
|
942
954
|
export type DeleteACLRuleRequest = {
|
|
943
955
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-k8s",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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.1",
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
33
|
+
"@scaleway/sdk-std": "1.0.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|