@scaleway/sdk-k8s 2.20.0 → 2.22.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 +8 -1
- package/dist/v1/api.gen.js +5 -1
- package/dist/v1/constants.gen.d.ts +31 -0
- package/dist/v1/constants.gen.js +138 -0
- package/dist/v1/index.gen.d.ts +2 -1
- package/dist/v1/index.gen.js +3 -2
- package/dist/v1/marshalling.gen.d.ts +2 -1
- package/dist/v1/marshalling.gen.js +20 -2
- package/dist/v1/metadata.gen.d.ts +10 -0
- package/dist/v1/metadata.gen.js +11 -0
- package/dist/v1/types.gen.d.ts +53 -4
- package/dist/v1/validation-rules.gen.d.ts +5 -5
- package/dist/v1/validation-rules.gen.js +5 -5
- package/package.json +2 -2
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 { WaitForOptions, ApiLocality } from '@scaleway/sdk-client';
|
|
3
|
-
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreatePoolRequest, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetUserDataRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen.js';
|
|
3
|
+
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreatePoolRequest, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetUserDataRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListUserDataRequest, ListUserDataResponse, ListVersionsRequest, ListVersionsResponse, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Kubernetes API.
|
|
6
6
|
|
|
@@ -209,6 +209,13 @@ export declare class API extends ParentAPI {
|
|
|
209
209
|
* @returns A Promise of Blob
|
|
210
210
|
*/
|
|
211
211
|
getUserData: (request: Readonly<GetUserDataRequest>) => Promise<Blob>;
|
|
212
|
+
/**
|
|
213
|
+
* List all user data related to a given pool.. This list only the user data key and not the content.
|
|
214
|
+
*
|
|
215
|
+
* @param request - The request {@link ListUserDataRequest}
|
|
216
|
+
* @returns A Promise of ListUserDataResponse
|
|
217
|
+
*/
|
|
218
|
+
listUserData: (request: Readonly<ListUserDataRequest>) => Promise<ListUserDataResponse>;
|
|
212
219
|
/**
|
|
213
220
|
* Fetch node metadata. Rerieve metadata to instantiate a Kapsule/Kosmos node. This method is not intended to be called by end users but rather programmatically by the node-installer.
|
|
214
221
|
*
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
2
|
+
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListUserDataResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
3
3
|
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
4
|
//#region src/v1/api.gen.ts
|
|
5
5
|
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
@@ -150,6 +150,10 @@ var API = class extends API$1 {
|
|
|
150
150
|
urlParams: urlParams(["dl", 1]),
|
|
151
151
|
responseType: "blob"
|
|
152
152
|
});
|
|
153
|
+
this.listUserData = (request) => this.client.fetch({
|
|
154
|
+
method: "GET",
|
|
155
|
+
path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam("poolId", request.poolId)}/user-data`
|
|
156
|
+
}, unmarshalListUserDataResponse);
|
|
153
157
|
this.getNodeMetadata = (request = {}) => this.client.fetch({
|
|
154
158
|
method: "GET",
|
|
155
159
|
path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/node-metadata`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AutoscalerEstimator, AutoscalerExpander, CNI, ClusterStatus, ClusterTypeAvailability, ClusterTypeResiliency, CoreV1TaintEffect, ListClustersRequestOrderBy, ListNodesRequestOrderBy, ListPoolsRequestOrderBy, MaintenanceWindowDayOfTheWeek, NodeStatus, PoolStatus, PoolVolumeType, Runtime } from './types.gen.js';
|
|
2
|
+
/** Lists all values of the enum {@link AutoscalerEstimator}. */
|
|
3
|
+
export declare const AUTOSCALER_ESTIMATORS: AutoscalerEstimator[];
|
|
4
|
+
/** Lists all values of the enum {@link AutoscalerExpander}. */
|
|
5
|
+
export declare const AUTOSCALER_EXPANDERS: AutoscalerExpander[];
|
|
6
|
+
/** Lists all values of the enum {@link CNI}. */
|
|
7
|
+
export declare const CNIS: CNI[];
|
|
8
|
+
/** Lists all values of the enum {@link ClusterStatus}. */
|
|
9
|
+
export declare const CLUSTER_STATUSES: ClusterStatus[];
|
|
10
|
+
/** Lists all values of the enum {@link ClusterTypeAvailability}. */
|
|
11
|
+
export declare const CLUSTER_TYPE_AVAILABILITIES: ClusterTypeAvailability[];
|
|
12
|
+
/** Lists all values of the enum {@link ClusterTypeResiliency}. */
|
|
13
|
+
export declare const CLUSTER_TYPE_RESILIENCIES: ClusterTypeResiliency[];
|
|
14
|
+
/** Lists all values of the enum {@link CoreV1TaintEffect}. */
|
|
15
|
+
export declare const CORE_V1_TAINT_EFFECTS: CoreV1TaintEffect[];
|
|
16
|
+
/** Lists all values of the enum {@link ListClustersRequestOrderBy}. */
|
|
17
|
+
export declare const LIST_CLUSTERS_REQUEST_ORDER_BIES: ListClustersRequestOrderBy[];
|
|
18
|
+
/** Lists all values of the enum {@link ListNodesRequestOrderBy}. */
|
|
19
|
+
export declare const LIST_NODES_REQUEST_ORDER_BIES: ListNodesRequestOrderBy[];
|
|
20
|
+
/** Lists all values of the enum {@link ListPoolsRequestOrderBy}. */
|
|
21
|
+
export declare const LIST_POOLS_REQUEST_ORDER_BIES: ListPoolsRequestOrderBy[];
|
|
22
|
+
/** Lists all values of the enum {@link MaintenanceWindowDayOfTheWeek}. */
|
|
23
|
+
export declare const MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS: MaintenanceWindowDayOfTheWeek[];
|
|
24
|
+
/** Lists all values of the enum {@link NodeStatus}. */
|
|
25
|
+
export declare const NODE_STATUSES: NodeStatus[];
|
|
26
|
+
/** Lists all values of the enum {@link PoolStatus}. */
|
|
27
|
+
export declare const POOL_STATUSES: PoolStatus[];
|
|
28
|
+
/** Lists all values of the enum {@link PoolVolumeType}. */
|
|
29
|
+
export declare const POOL_VOLUME_TYPES: PoolVolumeType[];
|
|
30
|
+
/** Lists all values of the enum {@link Runtime}. */
|
|
31
|
+
export declare const RUNTIMES: Runtime[];
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
//#region src/v1/constants.gen.ts
|
|
2
|
+
/** Lists all values of the enum {@link AutoscalerEstimator}. */
|
|
3
|
+
const AUTOSCALER_ESTIMATORS = ["unknown_estimator", "binpacking"];
|
|
4
|
+
/** Lists all values of the enum {@link AutoscalerExpander}. */
|
|
5
|
+
const AUTOSCALER_EXPANDERS = [
|
|
6
|
+
"unknown_expander",
|
|
7
|
+
"random",
|
|
8
|
+
"most_pods",
|
|
9
|
+
"least_waste",
|
|
10
|
+
"priority",
|
|
11
|
+
"price"
|
|
12
|
+
];
|
|
13
|
+
/** Lists all values of the enum {@link CNI}. */
|
|
14
|
+
const CNIS = [
|
|
15
|
+
"unknown_cni",
|
|
16
|
+
"cilium",
|
|
17
|
+
"calico",
|
|
18
|
+
"kilo",
|
|
19
|
+
"none",
|
|
20
|
+
"cilium_native"
|
|
21
|
+
];
|
|
22
|
+
/** Lists all values of the enum {@link ClusterStatus}. */
|
|
23
|
+
const CLUSTER_STATUSES = [
|
|
24
|
+
"unknown",
|
|
25
|
+
"creating",
|
|
26
|
+
"ready",
|
|
27
|
+
"deleting",
|
|
28
|
+
"deleted",
|
|
29
|
+
"updating",
|
|
30
|
+
"locked",
|
|
31
|
+
"pool_required"
|
|
32
|
+
];
|
|
33
|
+
/** Lists all values of the enum {@link ClusterTypeAvailability}. */
|
|
34
|
+
const CLUSTER_TYPE_AVAILABILITIES = [
|
|
35
|
+
"available",
|
|
36
|
+
"scarce",
|
|
37
|
+
"shortage"
|
|
38
|
+
];
|
|
39
|
+
/** Lists all values of the enum {@link ClusterTypeResiliency}. */
|
|
40
|
+
const CLUSTER_TYPE_RESILIENCIES = [
|
|
41
|
+
"unknown_resiliency",
|
|
42
|
+
"standard",
|
|
43
|
+
"high_availability"
|
|
44
|
+
];
|
|
45
|
+
/** Lists all values of the enum {@link CoreV1TaintEffect}. */
|
|
46
|
+
const CORE_V1_TAINT_EFFECTS = [
|
|
47
|
+
"NoSchedule",
|
|
48
|
+
"PreferNoSchedule",
|
|
49
|
+
"NoExecute"
|
|
50
|
+
];
|
|
51
|
+
/** Lists all values of the enum {@link ListClustersRequestOrderBy}. */
|
|
52
|
+
const LIST_CLUSTERS_REQUEST_ORDER_BIES = [
|
|
53
|
+
"created_at_asc",
|
|
54
|
+
"created_at_desc",
|
|
55
|
+
"updated_at_asc",
|
|
56
|
+
"updated_at_desc",
|
|
57
|
+
"name_asc",
|
|
58
|
+
"name_desc",
|
|
59
|
+
"status_asc",
|
|
60
|
+
"status_desc",
|
|
61
|
+
"version_asc",
|
|
62
|
+
"version_desc"
|
|
63
|
+
];
|
|
64
|
+
/** Lists all values of the enum {@link ListNodesRequestOrderBy}. */
|
|
65
|
+
const LIST_NODES_REQUEST_ORDER_BIES = [
|
|
66
|
+
"created_at_asc",
|
|
67
|
+
"created_at_desc",
|
|
68
|
+
"updated_at_asc",
|
|
69
|
+
"updated_at_desc",
|
|
70
|
+
"name_asc",
|
|
71
|
+
"name_desc",
|
|
72
|
+
"status_asc",
|
|
73
|
+
"status_desc",
|
|
74
|
+
"version_asc",
|
|
75
|
+
"version_desc"
|
|
76
|
+
];
|
|
77
|
+
/** Lists all values of the enum {@link ListPoolsRequestOrderBy}. */
|
|
78
|
+
const LIST_POOLS_REQUEST_ORDER_BIES = [
|
|
79
|
+
"created_at_asc",
|
|
80
|
+
"created_at_desc",
|
|
81
|
+
"updated_at_asc",
|
|
82
|
+
"updated_at_desc",
|
|
83
|
+
"name_asc",
|
|
84
|
+
"name_desc",
|
|
85
|
+
"status_asc",
|
|
86
|
+
"status_desc",
|
|
87
|
+
"version_asc",
|
|
88
|
+
"version_desc"
|
|
89
|
+
];
|
|
90
|
+
/** Lists all values of the enum {@link MaintenanceWindowDayOfTheWeek}. */
|
|
91
|
+
const MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS = [
|
|
92
|
+
"any",
|
|
93
|
+
"monday",
|
|
94
|
+
"tuesday",
|
|
95
|
+
"wednesday",
|
|
96
|
+
"thursday",
|
|
97
|
+
"friday",
|
|
98
|
+
"saturday",
|
|
99
|
+
"sunday"
|
|
100
|
+
];
|
|
101
|
+
/** Lists all values of the enum {@link NodeStatus}. */
|
|
102
|
+
const NODE_STATUSES = [
|
|
103
|
+
"unknown",
|
|
104
|
+
"creating",
|
|
105
|
+
"not_ready",
|
|
106
|
+
"ready",
|
|
107
|
+
"deleting",
|
|
108
|
+
"deleted",
|
|
109
|
+
"locked",
|
|
110
|
+
"rebooting",
|
|
111
|
+
"creation_error",
|
|
112
|
+
"upgrading",
|
|
113
|
+
"starting",
|
|
114
|
+
"registering"
|
|
115
|
+
];
|
|
116
|
+
/** Lists all values of the enum {@link PoolStatus}. */
|
|
117
|
+
const POOL_STATUSES = [
|
|
118
|
+
"unknown",
|
|
119
|
+
"ready",
|
|
120
|
+
"deleting",
|
|
121
|
+
"deleted",
|
|
122
|
+
"scaling",
|
|
123
|
+
"warning",
|
|
124
|
+
"locked",
|
|
125
|
+
"upgrading"
|
|
126
|
+
];
|
|
127
|
+
/** Lists all values of the enum {@link PoolVolumeType}. */
|
|
128
|
+
const POOL_VOLUME_TYPES = [
|
|
129
|
+
"default_volume_type",
|
|
130
|
+
"l_ssd",
|
|
131
|
+
"b_ssd",
|
|
132
|
+
"sbs_5k",
|
|
133
|
+
"sbs_15k"
|
|
134
|
+
];
|
|
135
|
+
/** Lists all values of the enum {@link Runtime}. */
|
|
136
|
+
const RUNTIMES = ["unknown_runtime", "containerd"];
|
|
137
|
+
//#endregion
|
|
138
|
+
export { AUTOSCALER_ESTIMATORS, AUTOSCALER_EXPANDERS, CLUSTER_STATUSES, CLUSTER_TYPE_AVAILABILITIES, CLUSTER_TYPE_RESILIENCIES, CNIS, CORE_V1_TAINT_EFFECTS, LIST_CLUSTERS_REQUEST_ORDER_BIES, LIST_NODES_REQUEST_ORDER_BIES, LIST_POOLS_REQUEST_ORDER_BIES, MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS, NODE_STATUSES, POOL_STATUSES, POOL_VOLUME_TYPES, RUNTIMES };
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
|
+
export * from './constants.gen.js';
|
|
3
4
|
export * from './marshalling.gen.js';
|
|
4
|
-
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CoreV1Taint, CoreV1TaintEffect, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetUserDataRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, Node, NodeMetadata, NodeMetadataCoreV1Taint, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen.js';
|
|
5
|
+
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, ComponentInfo, CoreV1Taint, CoreV1TaintEffect, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetUserDataRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListUserDataRequest, ListUserDataResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, Node, NodeMetadata, NodeMetadataCoreV1Taint, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, UserDataSummary, Version, } from './types.gen.js';
|
|
5
6
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
2
|
+
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListUserDataResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
3
3
|
import { API } from "./api.gen.js";
|
|
4
4
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
-
|
|
5
|
+
import { AUTOSCALER_ESTIMATORS, AUTOSCALER_EXPANDERS, CLUSTER_STATUSES, CLUSTER_TYPE_AVAILABILITIES, CLUSTER_TYPE_RESILIENCIES, CNIS, CORE_V1_TAINT_EFFECTS, LIST_CLUSTERS_REQUEST_ORDER_BIES, LIST_NODES_REQUEST_ORDER_BIES, LIST_POOLS_REQUEST_ORDER_BIES, MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS, NODE_STATUSES, POOL_STATUSES, POOL_VOLUME_TYPES, RUNTIMES } from "./constants.gen.js";
|
|
6
|
+
export { API, AUTOSCALER_ESTIMATORS, AUTOSCALER_EXPANDERS, CLUSTER_STATUSES, CLUSTER_TRANSIENT_STATUSES, CLUSTER_TYPE_AVAILABILITIES, CLUSTER_TYPE_RESILIENCIES, CNIS, CORE_V1_TAINT_EFFECTS, LIST_CLUSTERS_REQUEST_ORDER_BIES, LIST_NODES_REQUEST_ORDER_BIES, LIST_POOLS_REQUEST_ORDER_BIES, MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS, NODE_STATUSES, NODE_TRANSIENT_STATUSES, POOL_STATUSES, POOL_TRANSIENT_STATUSES, POOL_VOLUME_TYPES, RUNTIMES, validation_rules_gen_exports as ValidationRules, marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListUserDataResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { Version, Cluster, Node, Pool, AddClusterACLRulesResponse, ExternalNodeAuth, ListClusterACLRulesResponse, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClusterTypesResponse, ListClustersResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, NodeMetadata, SetClusterACLRulesResponse, AddClusterACLRulesRequest, CreateClusterRequest, CreatePoolRequest, SetClusterACLRulesRequest, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest } from './types.gen.js';
|
|
2
|
+
import type { Version, Cluster, Node, Pool, AddClusterACLRulesResponse, ExternalNodeAuth, ListClusterACLRulesResponse, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClusterTypesResponse, ListClustersResponse, ListNodesResponse, ListPoolsResponse, ListUserDataResponse, ListVersionsResponse, NodeMetadata, SetClusterACLRulesResponse, AddClusterACLRulesRequest, CreateClusterRequest, CreatePoolRequest, SetClusterACLRulesRequest, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalVersion: (data: unknown) => Version;
|
|
4
4
|
export declare const unmarshalCluster: (data: unknown) => Cluster;
|
|
5
5
|
export declare const unmarshalNode: (data: unknown) => Node;
|
|
@@ -13,6 +13,7 @@ export declare const unmarshalListClusterTypesResponse: (data: unknown) => ListC
|
|
|
13
13
|
export declare const unmarshalListClustersResponse: (data: unknown) => ListClustersResponse;
|
|
14
14
|
export declare const unmarshalListNodesResponse: (data: unknown) => ListNodesResponse;
|
|
15
15
|
export declare const unmarshalListPoolsResponse: (data: unknown) => ListPoolsResponse;
|
|
16
|
+
export declare const unmarshalListUserDataResponse: (data: unknown) => ListUserDataResponse;
|
|
16
17
|
export declare const unmarshalListVersionsResponse: (data: unknown) => ListVersionsResponse;
|
|
17
18
|
export declare const unmarshalNodeMetadata: (data: unknown) => NodeMetadata;
|
|
18
19
|
export declare const unmarshalSetClusterACLRulesResponse: (data: unknown) => SetClusterACLRulesResponse;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
1
|
+
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
3
|
//#region src/v1/marshalling.gen.ts
|
|
4
|
+
const unmarshalComponentInfo = (data) => {
|
|
5
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ComponentInfo' failed as data isn't a dictionary.`);
|
|
6
|
+
return { version: data.version };
|
|
7
|
+
};
|
|
4
8
|
const unmarshalVersion = (data) => {
|
|
5
9
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Version' failed as data isn't a dictionary.`);
|
|
6
10
|
return {
|
|
11
|
+
additionalComponents: unmarshalMapOfObject(data.additional_components, unmarshalComponentInfo),
|
|
7
12
|
availableAdmissionPlugins: data.available_admission_plugins,
|
|
8
13
|
availableCnis: data.available_cnis,
|
|
9
14
|
availableContainerRuntimes: data.available_container_runtimes,
|
|
@@ -140,6 +145,7 @@ const unmarshalPool = (data) => {
|
|
|
140
145
|
kubeletArgs: data.kubelet_args,
|
|
141
146
|
labels: data.labels,
|
|
142
147
|
maxSize: data.max_size,
|
|
148
|
+
maxTerminationGracePeriod: data.max_termination_grace_period,
|
|
143
149
|
minSize: data.min_size,
|
|
144
150
|
name: data.name,
|
|
145
151
|
nodeType: data.node_type,
|
|
@@ -244,6 +250,14 @@ const unmarshalListPoolsResponse = (data) => {
|
|
|
244
250
|
totalCount: data.total_count
|
|
245
251
|
};
|
|
246
252
|
};
|
|
253
|
+
const unmarshalUserDataSummary = (data) => {
|
|
254
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'UserDataSummary' failed as data isn't a dictionary.`);
|
|
255
|
+
return { key: data.key };
|
|
256
|
+
};
|
|
257
|
+
const unmarshalListUserDataResponse = (data) => {
|
|
258
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListUserDataResponse' failed as data isn't a dictionary.`);
|
|
259
|
+
return { userData: unmarshalArrayOfObject(data.user_data, unmarshalUserDataSummary) };
|
|
260
|
+
};
|
|
247
261
|
const unmarshalListVersionsResponse = (data) => {
|
|
248
262
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
|
|
249
263
|
return { versions: unmarshalArrayOfObject(data.versions, unmarshalVersion) };
|
|
@@ -342,6 +356,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
342
356
|
kubelet_args: request.kubeletArgs,
|
|
343
357
|
labels: request.labels,
|
|
344
358
|
max_size: request.maxSize,
|
|
359
|
+
max_termination_grace_period: request.maxTerminationGracePeriod,
|
|
345
360
|
min_size: request.minSize,
|
|
346
361
|
name: request.name,
|
|
347
362
|
node_type: request.nodeType,
|
|
@@ -356,6 +371,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
|
|
|
356
371
|
tags: request.tags,
|
|
357
372
|
taints: request.taints.map((elt) => marshalCoreV1Taint(elt, defaults)),
|
|
358
373
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(request.upgradePolicy, defaults) : void 0,
|
|
374
|
+
user_data: request.userData,
|
|
359
375
|
zone: request.zone
|
|
360
376
|
});
|
|
361
377
|
const marshalCreateClusterRequest = (request, defaults) => ({
|
|
@@ -397,6 +413,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
397
413
|
kubelet_args: request.kubeletArgs !== void 0 ? request.kubeletArgs : void 0,
|
|
398
414
|
labels: request.labels !== void 0 ? request.labels : void 0,
|
|
399
415
|
max_size: request.maxSize,
|
|
416
|
+
max_termination_grace_period: request.maxTerminationGracePeriod,
|
|
400
417
|
min_size: request.minSize,
|
|
401
418
|
name: request.name || randomName("pool"),
|
|
402
419
|
node_type: request.nodeType,
|
|
@@ -466,6 +483,7 @@ const marshalUpdatePoolRequest = (request, defaults) => ({
|
|
|
466
483
|
autoscaling: request.autoscaling,
|
|
467
484
|
kubelet_args: request.kubeletArgs,
|
|
468
485
|
max_size: request.maxSize,
|
|
486
|
+
max_termination_grace_period: request.maxTerminationGracePeriod,
|
|
469
487
|
min_size: request.minSize,
|
|
470
488
|
security_group_id: request.securityGroupId,
|
|
471
489
|
size: request.size,
|
|
@@ -478,4 +496,4 @@ const marshalUpgradeClusterRequest = (request, defaults) => ({
|
|
|
478
496
|
});
|
|
479
497
|
const marshalUpgradePoolRequest = (request, defaults) => ({ version: request.version });
|
|
480
498
|
//#endregion
|
|
481
|
-
export { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
|
|
499
|
+
export { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListUserDataResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
|
|
@@ -105,6 +105,16 @@ export declare const queriesMetadata: {
|
|
|
105
105
|
readonly paginationType: 'none';
|
|
106
106
|
readonly isPrivate: false;
|
|
107
107
|
readonly description: '"';
|
|
108
|
+
}, {
|
|
109
|
+
readonly methodName: 'listUserData';
|
|
110
|
+
readonly protoName: 'ListUserData';
|
|
111
|
+
readonly paramsType: 'ListUserDataRequest';
|
|
112
|
+
readonly returnType: 'ListUserDataResponse';
|
|
113
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-k8s/v1';
|
|
114
|
+
readonly isList: false;
|
|
115
|
+
readonly paginationType: 'none';
|
|
116
|
+
readonly isPrivate: false;
|
|
117
|
+
readonly description: '"';
|
|
108
118
|
}, {
|
|
109
119
|
readonly methodName: 'getNodeMetadata';
|
|
110
120
|
readonly protoName: 'GetNodeMetadata';
|
package/dist/v1/metadata.gen.js
CHANGED
|
@@ -116,6 +116,17 @@ const queriesMetadata = {
|
|
|
116
116
|
isPrivate: false,
|
|
117
117
|
description: "\""
|
|
118
118
|
},
|
|
119
|
+
{
|
|
120
|
+
methodName: "listUserData",
|
|
121
|
+
protoName: "ListUserData",
|
|
122
|
+
paramsType: "ListUserDataRequest",
|
|
123
|
+
returnType: "ListUserDataResponse",
|
|
124
|
+
returnTypeNamespace: "@scaleway-internal/sdk-k8s/v1",
|
|
125
|
+
isList: false,
|
|
126
|
+
paginationType: "none",
|
|
127
|
+
isPrivate: false,
|
|
128
|
+
description: "\""
|
|
129
|
+
},
|
|
119
130
|
{
|
|
120
131
|
methodName: "getNodeMetadata",
|
|
121
132
|
protoName: "GetNodeMetadata",
|
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' | '
|
|
4
|
+
export type CNI = 'unknown_cni' | 'cilium' | 'calico' | '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';
|
|
@@ -13,7 +13,7 @@ export type MaintenanceWindowDayOfTheWeek = 'any' | 'monday' | 'tuesday' | 'wedn
|
|
|
13
13
|
export type NodeStatus = 'unknown' | 'creating' | 'not_ready' | 'ready' | 'deleting' | 'deleted' | 'locked' | 'rebooting' | 'creation_error' | 'upgrading' | 'starting' | 'registering';
|
|
14
14
|
export type PoolStatus = 'unknown' | 'ready' | 'deleting' | 'deleted' | 'scaling' | 'warning' | 'locked' | 'upgrading';
|
|
15
15
|
export type PoolVolumeType = 'default_volume_type' | 'l_ssd' | 'b_ssd' | 'sbs_5k' | 'sbs_15k';
|
|
16
|
-
export type Runtime = 'unknown_runtime' | '
|
|
16
|
+
export type Runtime = 'unknown_runtime' | 'containerd';
|
|
17
17
|
export interface MaintenanceWindow {
|
|
18
18
|
/**
|
|
19
19
|
* Start time of the two-hour maintenance window.
|
|
@@ -51,6 +51,9 @@ export interface CreateClusterRequestPoolConfigUpgradePolicy {
|
|
|
51
51
|
*/
|
|
52
52
|
maxSurge?: number;
|
|
53
53
|
}
|
|
54
|
+
export interface ComponentInfo {
|
|
55
|
+
version: string;
|
|
56
|
+
}
|
|
54
57
|
export interface ClusterAutoUpgrade {
|
|
55
58
|
/**
|
|
56
59
|
* Defines whether auto upgrade is enabled for the cluster.
|
|
@@ -373,6 +376,14 @@ export interface CreateClusterRequestPoolConfig {
|
|
|
373
376
|
* Private network where the nodes are attached. Should be member of the same VPC as the API Server.
|
|
374
377
|
*/
|
|
375
378
|
privateNetworkId?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Maximum amount of time before the API forces the drain and deletion of a `deleting` node. It overrides pods `PodDisruptionBudget` and `terminationGracePeriodSeconds`. Defaults to 15 minutes, up to 1 hour.
|
|
381
|
+
*/
|
|
382
|
+
maxTerminationGracePeriod?: string;
|
|
383
|
+
/**
|
|
384
|
+
* User data applied and reconciled with the pool.
|
|
385
|
+
*/
|
|
386
|
+
userData: Record<string, string>;
|
|
376
387
|
}
|
|
377
388
|
export interface CreatePoolRequestUpgradePolicy {
|
|
378
389
|
/**
|
|
@@ -448,7 +459,7 @@ export interface Version {
|
|
|
448
459
|
*/
|
|
449
460
|
availableCnis: CNI[];
|
|
450
461
|
/**
|
|
451
|
-
* Supported container runtimes for this version.
|
|
462
|
+
* @deprecated Supported container runtimes for this version.
|
|
452
463
|
*/
|
|
453
464
|
availableContainerRuntimes: Runtime[];
|
|
454
465
|
/**
|
|
@@ -475,6 +486,10 @@ export interface Version {
|
|
|
475
486
|
* Date at which this version was made available by Kapsule product.
|
|
476
487
|
*/
|
|
477
488
|
releasedAt?: Date;
|
|
489
|
+
/**
|
|
490
|
+
* Map containing every sub-component version shipped with this Kapsule version.
|
|
491
|
+
*/
|
|
492
|
+
additionalComponents: Record<string, ComponentInfo>;
|
|
478
493
|
}
|
|
479
494
|
export interface Cluster {
|
|
480
495
|
/**
|
|
@@ -764,11 +779,21 @@ export interface Pool {
|
|
|
764
779
|
* Details of the error, if any occurred when managing the pool.
|
|
765
780
|
*/
|
|
766
781
|
errorMessage?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Maximum amount of time before the API forces the drain and deletion of a `deleting` node. It overrides pods `PodDisruptionBudget` and `terminationGracePeriodSeconds`. Defaults to 15 minutes, up to 1 hour.
|
|
784
|
+
*/
|
|
785
|
+
maxTerminationGracePeriod?: string;
|
|
767
786
|
/**
|
|
768
787
|
* Cluster region of the pool.
|
|
769
788
|
*/
|
|
770
789
|
region: ScwRegion;
|
|
771
790
|
}
|
|
791
|
+
export interface UserDataSummary {
|
|
792
|
+
/**
|
|
793
|
+
* Key name of a given user data.
|
|
794
|
+
*/
|
|
795
|
+
key: string;
|
|
796
|
+
}
|
|
772
797
|
export interface NodeMetadataCoreV1Taint {
|
|
773
798
|
key: string;
|
|
774
799
|
value: string;
|
|
@@ -1090,6 +1115,10 @@ export type CreatePoolRequest = {
|
|
|
1090
1115
|
* User data applied and reconciled with the pool.
|
|
1091
1116
|
*/
|
|
1092
1117
|
userData?: Record<string, string>;
|
|
1118
|
+
/**
|
|
1119
|
+
* Maximum amount of time before the API forces the drain and deletion of a `deleting` node. It overrides pods `PodDisruptionBudget` and `terminationGracePeriodSeconds`. Defaults to 15 minutes, up to 1 hour.
|
|
1120
|
+
*/
|
|
1121
|
+
maxTerminationGracePeriod?: string;
|
|
1093
1122
|
};
|
|
1094
1123
|
export type DeleteACLRuleRequest = {
|
|
1095
1124
|
/**
|
|
@@ -1199,7 +1228,7 @@ export type GetUserDataRequest = {
|
|
|
1199
1228
|
*/
|
|
1200
1229
|
region?: ScwRegion;
|
|
1201
1230
|
/**
|
|
1202
|
-
* Pool the user data
|
|
1231
|
+
* Pool the user data are associated to.
|
|
1203
1232
|
*/
|
|
1204
1233
|
poolId: string;
|
|
1205
1234
|
/**
|
|
@@ -1445,6 +1474,22 @@ export interface ListPoolsResponse {
|
|
|
1445
1474
|
*/
|
|
1446
1475
|
pools: Pool[];
|
|
1447
1476
|
}
|
|
1477
|
+
export type ListUserDataRequest = {
|
|
1478
|
+
/**
|
|
1479
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1480
|
+
*/
|
|
1481
|
+
region?: ScwRegion;
|
|
1482
|
+
/**
|
|
1483
|
+
* Pool the user data are associated to.
|
|
1484
|
+
*/
|
|
1485
|
+
poolId: string;
|
|
1486
|
+
};
|
|
1487
|
+
export interface ListUserDataResponse {
|
|
1488
|
+
/**
|
|
1489
|
+
* User data information.
|
|
1490
|
+
*/
|
|
1491
|
+
userData: UserDataSummary[];
|
|
1492
|
+
}
|
|
1448
1493
|
export type ListVersionsRequest = {
|
|
1449
1494
|
/**
|
|
1450
1495
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -1669,6 +1714,10 @@ export type UpdatePoolRequest = {
|
|
|
1669
1714
|
* Security group ID in which all the nodes of the pool will be moved.
|
|
1670
1715
|
*/
|
|
1671
1716
|
securityGroupId?: string;
|
|
1717
|
+
/**
|
|
1718
|
+
* New maximum amount of time before the API forces the drain and deletion of a `deleting` node.
|
|
1719
|
+
*/
|
|
1720
|
+
maxTerminationGracePeriod?: string;
|
|
1672
1721
|
};
|
|
1673
1722
|
export type UpgradeClusterRequest = {
|
|
1674
1723
|
/**
|
|
@@ -71,7 +71,7 @@ export declare const ListClusterACLRulesRequest: {
|
|
|
71
71
|
greaterThan: number;
|
|
72
72
|
};
|
|
73
73
|
pageSize: {
|
|
74
|
-
|
|
74
|
+
greaterThan: number;
|
|
75
75
|
lessThanOrEqual: number;
|
|
76
76
|
};
|
|
77
77
|
};
|
|
@@ -80,7 +80,7 @@ export declare const ListClusterTypesRequest: {
|
|
|
80
80
|
greaterThan: number;
|
|
81
81
|
};
|
|
82
82
|
pageSize: {
|
|
83
|
-
|
|
83
|
+
greaterThan: number;
|
|
84
84
|
lessThanOrEqual: number;
|
|
85
85
|
};
|
|
86
86
|
};
|
|
@@ -92,7 +92,7 @@ export declare const ListClustersRequest: {
|
|
|
92
92
|
greaterThan: number;
|
|
93
93
|
};
|
|
94
94
|
pageSize: {
|
|
95
|
-
|
|
95
|
+
greaterThan: number;
|
|
96
96
|
lessThanOrEqual: number;
|
|
97
97
|
};
|
|
98
98
|
version: {
|
|
@@ -107,7 +107,7 @@ export declare const ListNodesRequest: {
|
|
|
107
107
|
greaterThan: number;
|
|
108
108
|
};
|
|
109
109
|
pageSize: {
|
|
110
|
-
|
|
110
|
+
greaterThan: number;
|
|
111
111
|
lessThanOrEqual: number;
|
|
112
112
|
};
|
|
113
113
|
};
|
|
@@ -119,7 +119,7 @@ export declare const ListPoolsRequest: {
|
|
|
119
119
|
greaterThan: number;
|
|
120
120
|
};
|
|
121
121
|
pageSize: {
|
|
122
|
-
|
|
122
|
+
greaterThan: number;
|
|
123
123
|
lessThanOrEqual: number;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
@@ -63,14 +63,14 @@ const CreatePoolRequest = { name: {
|
|
|
63
63
|
const ListClusterACLRulesRequest = {
|
|
64
64
|
page: { greaterThan: 0 },
|
|
65
65
|
pageSize: {
|
|
66
|
-
|
|
66
|
+
greaterThan: 0,
|
|
67
67
|
lessThanOrEqual: 100
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
const ListClusterTypesRequest = {
|
|
71
71
|
page: { greaterThan: 0 },
|
|
72
72
|
pageSize: {
|
|
73
|
-
|
|
73
|
+
greaterThan: 0,
|
|
74
74
|
lessThanOrEqual: 100
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -78,7 +78,7 @@ const ListClustersRequest = {
|
|
|
78
78
|
name: { minLength: 1 },
|
|
79
79
|
page: { greaterThan: 0 },
|
|
80
80
|
pageSize: {
|
|
81
|
-
|
|
81
|
+
greaterThan: 0,
|
|
82
82
|
lessThanOrEqual: 100
|
|
83
83
|
},
|
|
84
84
|
version: { minLength: 1 }
|
|
@@ -87,7 +87,7 @@ const ListNodesRequest = {
|
|
|
87
87
|
name: { minLength: 1 },
|
|
88
88
|
page: { greaterThan: 0 },
|
|
89
89
|
pageSize: {
|
|
90
|
-
|
|
90
|
+
greaterThan: 0,
|
|
91
91
|
lessThanOrEqual: 100
|
|
92
92
|
}
|
|
93
93
|
};
|
|
@@ -95,7 +95,7 @@ const ListPoolsRequest = {
|
|
|
95
95
|
name: { minLength: 1 },
|
|
96
96
|
page: { greaterThan: 0 },
|
|
97
97
|
pageSize: {
|
|
98
|
-
|
|
98
|
+
greaterThan: 0,
|
|
99
99
|
lessThanOrEqual: 100
|
|
100
100
|
}
|
|
101
101
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-k8s",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "Scaleway SDK k8s",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.
|
|
36
|
+
"@scaleway/sdk-std": "2.7.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@scaleway/sdk-client": "^2.6.0",
|