@scaleway/sdk-k8s 2.4.0 → 2.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.
@@ -1,6 +1,6 @@
1
1
  import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
2
2
  import { API as ParentAPI } 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, ListClustersRequest, ListClustersResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen.js';
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, 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
 
@@ -180,6 +180,27 @@ export declare class API extends ParentAPI {
180
180
  * @returns A Promise of Pool
181
181
  */
182
182
  deletePool: (request: Readonly<DeletePoolRequest>) => Promise<Pool>;
183
+ /**
184
+ * Set a list of taints for a specific pool. Apply a list of taints to all nodes of the pool which will be periodically reconciled by scaleway.
185
+ *
186
+ * @param request - The request {@link SetPoolTaintsRequest}
187
+ * @returns A Promise of Pool
188
+ */
189
+ setPoolTaints: (request: Readonly<SetPoolTaintsRequest>) => Promise<Pool>;
190
+ /**
191
+ * Set a list of startup taints for a specific pool. Apply a list of taints to new nodes of the pool which would not be reconciled by scaleway.
192
+ *
193
+ * @param request - The request {@link SetPoolStartupTaintsRequest}
194
+ * @returns A Promise of Pool
195
+ */
196
+ setPoolStartupTaints: (request: Readonly<SetPoolStartupTaintsRequest>) => Promise<Pool>;
197
+ /**
198
+ * Set a list of labels for a specific pool. Apply a list of taints to all nodes of the pool (only apply to labels which was set through scaleway api).
199
+ *
200
+ * @param request - The request {@link SetPoolLabelsRequest}
201
+ * @returns A Promise of Pool
202
+ */
203
+ setPoolLabels: (request: Readonly<SetPoolLabelsRequest>) => Promise<Pool>;
183
204
  /**
184
205
  * 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.
185
206
  *
@@ -1,6 +1,6 @@
1
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
- import { unmarshalListClustersResponse, marshalCreateClusterRequest, unmarshalCluster, marshalUpdateClusterRequest, marshalUpgradeClusterRequest, marshalSetClusterTypeRequest, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterACLRulesResponse, marshalAddClusterACLRulesRequest, unmarshalAddClusterACLRulesResponse, marshalSetClusterACLRulesRequest, unmarshalSetClusterACLRulesResponse, unmarshalListPoolsResponse, marshalCreatePoolRequest, unmarshalPool, marshalUpgradePoolRequest, marshalUpdatePoolRequest, unmarshalNodeMetadata, unmarshalExternalNodeAuth, unmarshalExternalNode, unmarshalListNodesResponse, unmarshalNode, unmarshalListVersionsResponse, unmarshalVersion, unmarshalListClusterTypesResponse } from "./marshalling.gen.js";
3
+ import { unmarshalListClustersResponse, marshalCreateClusterRequest, unmarshalCluster, marshalUpdateClusterRequest, marshalUpgradeClusterRequest, marshalSetClusterTypeRequest, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterACLRulesResponse, marshalAddClusterACLRulesRequest, unmarshalAddClusterACLRulesResponse, marshalSetClusterACLRulesRequest, unmarshalSetClusterACLRulesResponse, unmarshalListPoolsResponse, marshalCreatePoolRequest, unmarshalPool, marshalUpgradePoolRequest, marshalUpdatePoolRequest, marshalSetPoolTaintsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolLabelsRequest, 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
  };
@@ -10,7 +10,11 @@ class API extends API$1 {
10
10
  * type ∈ {'zone','region','global','unspecified'}
11
11
  */
12
12
  static LOCALITY = toApiLocality({
13
- regions: ["fr-par", "nl-ams", "pl-waw"]
13
+ regions: [
14
+ "fr-par",
15
+ "nl-ams",
16
+ "pl-waw"
17
+ ]
14
18
  });
15
19
  pageOfListClusters = (request = {}) => this.client.fetch(
16
20
  {
@@ -21,10 +25,7 @@ class API extends API$1 {
21
25
  ["order_by", request.orderBy],
22
26
  ["organization_id", request.organizationId],
23
27
  ["page", request.page],
24
- [
25
- "page_size",
26
- request.pageSize ?? this.client.settings.defaultPageSize
27
- ],
28
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
28
29
  ["private_network_id", request.privateNetworkId],
29
30
  ["project_id", request.projectId],
30
31
  ["status", request.status],
@@ -78,9 +79,7 @@ class API extends API$1 {
78
79
  * @returns A Promise of Cluster
79
80
  */
80
81
  waitForCluster = (request, options) => waitForResource(
81
- options?.stop ?? ((res) => Promise.resolve(
82
- !CLUSTER_TRANSIENT_STATUSES.includes(res.status)
83
- )),
82
+ options?.stop ?? ((res) => Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))),
84
83
  this.getCluster,
85
84
  request,
86
85
  options
@@ -112,10 +111,9 @@ class API extends API$1 {
112
111
  {
113
112
  method: "DELETE",
114
113
  path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}`,
115
- urlParams: urlParams([
116
- "with_additional_resources",
117
- request.withAdditionalResources
118
- ])
114
+ urlParams: urlParams(
115
+ ["with_additional_resources", request.withAdditionalResources]
116
+ )
119
117
  },
120
118
  unmarshalCluster
121
119
  );
@@ -179,33 +177,37 @@ class API extends API$1 {
179
177
  },
180
178
  unmarshalListClusterAvailableTypesResponse
181
179
  );
182
- _getClusterKubeConfig = (request) => this.client.fetch({
183
- method: "GET",
184
- path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/kubeconfig`,
185
- urlParams: urlParams(["dl", 1], ["redacted", request.redacted]),
186
- responseType: "blob"
187
- });
180
+ _getClusterKubeConfig = (request) => this.client.fetch(
181
+ {
182
+ method: "GET",
183
+ path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/kubeconfig`,
184
+ urlParams: urlParams(
185
+ ["dl", 1],
186
+ ["redacted", request.redacted]
187
+ ),
188
+ responseType: "blob"
189
+ }
190
+ );
188
191
  /**
189
192
  * Reset the admin token of a Cluster. Reset the admin token for a specific Kubernetes cluster. This will revoke the old admin token (which will not be usable afterwards) and create a new one. Note that you will need to download the kubeconfig again to keep interacting with the cluster.
190
193
  *
191
194
  * @param request - The request {@link ResetClusterAdminTokenRequest}
192
195
  */
193
- resetClusterAdminToken = (request) => this.client.fetch({
194
- body: "{}",
195
- headers: jsonContentHeaders,
196
- method: "POST",
197
- path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/reset-admin-token`
198
- });
196
+ resetClusterAdminToken = (request) => this.client.fetch(
197
+ {
198
+ body: "{}",
199
+ headers: jsonContentHeaders,
200
+ method: "POST",
201
+ path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/reset-admin-token`
202
+ }
203
+ );
199
204
  pageOfListClusterACLRules = (request) => this.client.fetch(
200
205
  {
201
206
  method: "GET",
202
207
  path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/acls`,
203
208
  urlParams: urlParams(
204
209
  ["page", request.page],
205
- [
206
- "page_size",
207
- request.pageSize ?? this.client.settings.defaultPageSize
208
- ]
210
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
209
211
  )
210
212
  },
211
213
  unmarshalListClusterACLRulesResponse
@@ -256,10 +258,12 @@ class API extends API$1 {
256
258
  *
257
259
  * @param request - The request {@link DeleteACLRuleRequest}
258
260
  */
259
- deleteACLRule = (request) => this.client.fetch({
260
- method: "DELETE",
261
- path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}`
262
- });
261
+ deleteACLRule = (request) => this.client.fetch(
262
+ {
263
+ method: "DELETE",
264
+ path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}`
265
+ }
266
+ );
263
267
  pageOfListPools = (request) => this.client.fetch(
264
268
  {
265
269
  method: "GET",
@@ -268,10 +272,7 @@ class API extends API$1 {
268
272
  ["name", request.name],
269
273
  ["order_by", request.orderBy],
270
274
  ["page", request.page],
271
- [
272
- "page_size",
273
- request.pageSize ?? this.client.settings.defaultPageSize
274
- ],
275
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
275
276
  ["status", request.status]
276
277
  )
277
278
  },
@@ -375,6 +376,57 @@ class API extends API$1 {
375
376
  },
376
377
  unmarshalPool
377
378
  );
379
+ /**
380
+ * Set a list of taints for a specific pool. Apply a list of taints to all nodes of the pool which will be periodically reconciled by scaleway.
381
+ *
382
+ * @param request - The request {@link SetPoolTaintsRequest}
383
+ * @returns A Promise of Pool
384
+ */
385
+ setPoolTaints = (request) => this.client.fetch(
386
+ {
387
+ body: JSON.stringify(
388
+ marshalSetPoolTaintsRequest(request, this.client.settings)
389
+ ),
390
+ headers: jsonContentHeaders,
391
+ method: "PUT",
392
+ path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam("poolId", request.poolId)}/set-taints`
393
+ },
394
+ unmarshalPool
395
+ );
396
+ /**
397
+ * Set a list of startup taints for a specific pool. Apply a list of taints to new nodes of the pool which would not be reconciled by scaleway.
398
+ *
399
+ * @param request - The request {@link SetPoolStartupTaintsRequest}
400
+ * @returns A Promise of Pool
401
+ */
402
+ setPoolStartupTaints = (request) => this.client.fetch(
403
+ {
404
+ body: JSON.stringify(
405
+ marshalSetPoolStartupTaintsRequest(request, this.client.settings)
406
+ ),
407
+ headers: jsonContentHeaders,
408
+ method: "PUT",
409
+ path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam("poolId", request.poolId)}/set-startup-taints`
410
+ },
411
+ unmarshalPool
412
+ );
413
+ /**
414
+ * Set a list of labels for a specific pool. Apply a list of taints to all nodes of the pool (only apply to labels which was set through scaleway api).
415
+ *
416
+ * @param request - The request {@link SetPoolLabelsRequest}
417
+ * @returns A Promise of Pool
418
+ */
419
+ setPoolLabels = (request) => this.client.fetch(
420
+ {
421
+ body: JSON.stringify(
422
+ marshalSetPoolLabelsRequest(request, this.client.settings)
423
+ ),
424
+ headers: jsonContentHeaders,
425
+ method: "PUT",
426
+ path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam("poolId", request.poolId)}/set-labels`
427
+ },
428
+ unmarshalPool
429
+ );
378
430
  /**
379
431
  * 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.
380
432
  *
@@ -426,10 +478,7 @@ class API extends API$1 {
426
478
  ["name", request.name],
427
479
  ["order_by", request.orderBy],
428
480
  ["page", request.page],
429
- [
430
- "page_size",
431
- request.pageSize ?? this.client.settings.defaultPageSize
432
- ],
481
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
433
482
  ["pool_id", request.poolId],
434
483
  ["status", request.status]
435
484
  )
@@ -549,10 +598,7 @@ class API extends API$1 {
549
598
  path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/cluster-types`,
550
599
  urlParams: urlParams(
551
600
  ["page", request.page],
552
- [
553
- "page_size",
554
- request.pageSize ?? this.client.settings.defaultPageSize
555
- ]
601
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
556
602
  )
557
603
  },
558
604
  unmarshalListClusterTypesResponse
@@ -1,5 +1,5 @@
1
- export { API } from './api.gen.js';
1
+ export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
3
  export * from './marshalling.gen.js';
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, 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.js';
4
+ export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, Cluster, ClusterAutoscalerConfig, ClusterAutoUpgrade, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CNI, CoreV1Taint, CoreV1TaintEffect, 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, Node, NodeMetadata, NodeMetadataCoreV1Taint, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen.js';
5
5
  export * as ValidationRules from './validation-rules.gen.js';
@@ -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, ListClustersResponse, ListClusterTypesResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, Node, NodeMetadata, Pool, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen.js';
2
+ import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, Cluster, CreateClusterRequest, CreatePoolRequest, ExternalNode, ExternalNodeAuth, ListClusterACLRulesResponse, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClustersResponse, ListClusterTypesResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, Node, NodeMetadata, Pool, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } 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;
@@ -22,6 +22,9 @@ export declare const marshalCreateClusterRequest: (request: CreateClusterRequest
22
22
  export declare const marshalCreatePoolRequest: (request: CreatePoolRequest, defaults: DefaultValues) => Record<string, unknown>;
23
23
  export declare const marshalSetClusterACLRulesRequest: (request: SetClusterACLRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
24
24
  export declare const marshalSetClusterTypeRequest: (request: SetClusterTypeRequest, defaults: DefaultValues) => Record<string, unknown>;
25
+ export declare const marshalSetPoolLabelsRequest: (request: SetPoolLabelsRequest, defaults: DefaultValues) => Record<string, unknown>;
26
+ export declare const marshalSetPoolStartupTaintsRequest: (request: SetPoolStartupTaintsRequest, defaults: DefaultValues) => Record<string, unknown>;
27
+ export declare const marshalSetPoolTaintsRequest: (request: SetPoolTaintsRequest, defaults: DefaultValues) => Record<string, unknown>;
25
28
  export declare const marshalUpdateClusterRequest: (request: UpdateClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
26
29
  export declare const marshalUpdatePoolRequest: (request: UpdatePoolRequest, defaults: DefaultValues) => Record<string, unknown>;
27
30
  export declare const marshalUpgradeClusterRequest: (request: UpgradeClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -123,7 +123,7 @@ const unmarshalNode = (data) => {
123
123
  }
124
124
  return {
125
125
  clusterId: data.cluster_id,
126
- conditions: data.conditions ? data.conditions : void 0,
126
+ conditions: data.conditions,
127
127
  createdAt: unmarshalDate(data.created_at),
128
128
  errorMessage: data.error_message,
129
129
  id: data.id,
@@ -137,6 +137,18 @@ const unmarshalNode = (data) => {
137
137
  updatedAt: unmarshalDate(data.updated_at)
138
138
  };
139
139
  };
140
+ const unmarshalCoreV1Taint = (data) => {
141
+ if (!isJSONObject(data)) {
142
+ throw new TypeError(
143
+ `Unmarshalling the type 'CoreV1Taint' failed as data isn't a dictionary.`
144
+ );
145
+ }
146
+ return {
147
+ effect: data.effect,
148
+ key: data.key,
149
+ value: data.value
150
+ };
151
+ };
140
152
  const unmarshalPoolUpgradePolicy = (data) => {
141
153
  if (!isJSONObject(data)) {
142
154
  throw new TypeError(
@@ -162,6 +174,7 @@ const unmarshalPool = (data) => {
162
174
  createdAt: unmarshalDate(data.created_at),
163
175
  id: data.id,
164
176
  kubeletArgs: data.kubelet_args,
177
+ labels: data.labels,
165
178
  maxSize: data.max_size,
166
179
  minSize: data.min_size,
167
180
  name: data.name,
@@ -173,8 +186,10 @@ const unmarshalPool = (data) => {
173
186
  rootVolumeType: data.root_volume_type,
174
187
  securityGroupId: data.security_group_id,
175
188
  size: data.size,
189
+ startupTaints: unmarshalArrayOfObject(data.startup_taints, unmarshalCoreV1Taint),
176
190
  status: data.status,
177
191
  tags: data.tags,
192
+ taints: unmarshalArrayOfObject(data.taints, unmarshalCoreV1Taint),
178
193
  updatedAt: unmarshalDate(data.updated_at),
179
194
  upgradePolicy: data.upgrade_policy ? unmarshalPoolUpgradePolicy(data.upgrade_policy) : void 0,
180
195
  version: data.version,
@@ -234,10 +249,7 @@ const unmarshalExternalNode = (data) => {
234
249
  kubeletConfig: data.kubelet_config,
235
250
  name: data.name,
236
251
  nodeLabels: data.node_labels,
237
- nodeTaints: unmarshalArrayOfObject(
238
- data.node_taints,
239
- unmarshalExternalNodeCoreV1Taint
240
- ),
252
+ nodeTaints: unmarshalArrayOfObject(data.node_taints, unmarshalExternalNodeCoreV1Taint),
241
253
  poolVersion: data.pool_version,
242
254
  runcVersion: data.runc_version
243
255
  };
@@ -290,10 +302,7 @@ const unmarshalListClusterAvailableTypesResponse = (data) => {
290
302
  );
291
303
  }
292
304
  return {
293
- clusterTypes: unmarshalArrayOfObject(
294
- data.cluster_types,
295
- unmarshalClusterType
296
- ),
305
+ clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
297
306
  totalCount: data.total_count
298
307
  };
299
308
  };
@@ -314,10 +323,7 @@ const unmarshalListClusterTypesResponse = (data) => {
314
323
  );
315
324
  }
316
325
  return {
317
- clusterTypes: unmarshalArrayOfObject(
318
- data.cluster_types,
319
- unmarshalClusterType
320
- ),
326
+ clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
321
327
  totalCount: data.total_count
322
328
  };
323
329
  };
@@ -393,10 +399,7 @@ const unmarshalNodeMetadata = (data) => {
393
399
  kubeletConfig: data.kubelet_config,
394
400
  name: data.name,
395
401
  nodeLabels: data.node_labels,
396
- nodeTaints: unmarshalArrayOfObject(
397
- data.node_taints,
398
- unmarshalNodeMetadataCoreV1Taint
399
- ),
402
+ nodeTaints: unmarshalArrayOfObject(data.node_taints, unmarshalNodeMetadataCoreV1Taint),
400
403
  poolVersion: data.pool_version,
401
404
  providerId: data.provider_id,
402
405
  repoUri: data.repo_uri,
@@ -420,8 +423,14 @@ const unmarshalSetClusterACLRulesResponse = (data) => {
420
423
  const marshalACLRuleRequest = (request, defaults) => ({
421
424
  description: request.description,
422
425
  ...resolveOneOf([
423
- { param: "ip", value: request.ip },
424
- { param: "scaleway_ranges", value: request.scalewayRanges }
426
+ {
427
+ param: "ip",
428
+ value: request.ip
429
+ },
430
+ {
431
+ param: "scaleway_ranges",
432
+ value: request.scalewayRanges
433
+ }
425
434
  ])
426
435
  });
427
436
  const marshalAddClusterACLRulesRequest = (request, defaults) => ({
@@ -431,6 +440,11 @@ const marshalMaintenanceWindow = (request, defaults) => ({
431
440
  day: request.day,
432
441
  start_hour: request.startHour
433
442
  });
443
+ const marshalCoreV1Taint = (request, defaults) => ({
444
+ effect: request.effect,
445
+ key: request.key,
446
+ value: request.value
447
+ });
434
448
  const marshalCreateClusterRequestPoolConfigUpgradePolicy = (request, defaults) => ({
435
449
  max_surge: request.maxSurge,
436
450
  max_unavailable: request.maxUnavailable
@@ -465,6 +479,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
465
479
  autoscaling: request.autoscaling,
466
480
  container_runtime: request.containerRuntime,
467
481
  kubelet_args: request.kubeletArgs,
482
+ labels: request.labels,
468
483
  max_size: request.maxSize,
469
484
  min_size: request.minSize,
470
485
  name: request.name,
@@ -475,30 +490,24 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
475
490
  root_volume_type: request.rootVolumeType,
476
491
  security_group_id: request.securityGroupId,
477
492
  size: request.size,
493
+ startup_taints: request.startupTaints.map((elt) => marshalCoreV1Taint(elt)),
478
494
  tags: request.tags,
479
- upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(
480
- request.upgradePolicy
481
- ) : void 0,
495
+ taints: request.taints.map((elt) => marshalCoreV1Taint(elt)),
496
+ upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(request.upgradePolicy) : void 0,
482
497
  zone: request.zone
483
498
  });
484
499
  const marshalCreateClusterRequest = (request, defaults) => ({
485
500
  admission_plugins: request.admissionPlugins,
486
501
  apiserver_cert_sans: request.apiserverCertSans,
487
502
  auto_upgrade: request.autoUpgrade !== void 0 ? marshalCreateClusterRequestAutoUpgrade(request.autoUpgrade) : void 0,
488
- autoscaler_config: request.autoscalerConfig !== void 0 ? marshalCreateClusterRequestAutoscalerConfig(
489
- request.autoscalerConfig
490
- ) : void 0,
503
+ autoscaler_config: request.autoscalerConfig !== void 0 ? marshalCreateClusterRequestAutoscalerConfig(request.autoscalerConfig) : void 0,
491
504
  cni: request.cni,
492
505
  description: request.description,
493
506
  feature_gates: request.featureGates,
494
507
  name: request.name || randomName("k8s"),
495
- open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(
496
- request.openIdConnectConfig
497
- ) : void 0,
508
+ open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalCreateClusterRequestOpenIDConnectConfig(request.openIdConnectConfig) : void 0,
498
509
  pod_cidr: request.podCidr,
499
- pools: request.pools !== void 0 ? request.pools.map(
500
- (elt) => marshalCreateClusterRequestPoolConfig(elt)
501
- ) : void 0,
510
+ pools: request.pools !== void 0 ? request.pools.map((elt) => marshalCreateClusterRequestPoolConfig(elt)) : void 0,
502
511
  private_network_id: request.privateNetworkId,
503
512
  service_cidr: request.serviceCidr,
504
513
  service_dns_ip: request.serviceDnsIp,
@@ -527,6 +536,7 @@ const marshalCreatePoolRequest = (request, defaults) => ({
527
536
  autoscaling: request.autoscaling,
528
537
  container_runtime: request.containerRuntime,
529
538
  kubelet_args: request.kubeletArgs !== void 0 ? request.kubeletArgs : void 0,
539
+ labels: request.labels !== void 0 ? request.labels : void 0,
530
540
  max_size: request.maxSize,
531
541
  min_size: request.minSize,
532
542
  name: request.name || randomName("pool"),
@@ -537,7 +547,9 @@ const marshalCreatePoolRequest = (request, defaults) => ({
537
547
  root_volume_type: request.rootVolumeType,
538
548
  security_group_id: request.securityGroupId,
539
549
  size: request.size,
550
+ startup_taints: request.startupTaints !== void 0 ? request.startupTaints.map((elt) => marshalCoreV1Taint(elt)) : void 0,
540
551
  tags: request.tags,
552
+ taints: request.taints !== void 0 ? request.taints.map((elt) => marshalCoreV1Taint(elt)) : void 0,
541
553
  upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy) : void 0,
542
554
  zone: request.zone ?? defaults.defaultZone
543
555
  });
@@ -547,6 +559,15 @@ const marshalSetClusterACLRulesRequest = (request, defaults) => ({
547
559
  const marshalSetClusterTypeRequest = (request, defaults) => ({
548
560
  type: request.type
549
561
  });
562
+ const marshalSetPoolLabelsRequest = (request, defaults) => ({
563
+ labels: request.labels !== void 0 ? request.labels : void 0
564
+ });
565
+ const marshalSetPoolStartupTaintsRequest = (request, defaults) => ({
566
+ startup_taints: request.startupTaints !== void 0 ? request.startupTaints.map((elt) => marshalCoreV1Taint(elt)) : void 0
567
+ });
568
+ const marshalSetPoolTaintsRequest = (request, defaults) => ({
569
+ taints: request.taints !== void 0 ? request.taints.map((elt) => marshalCoreV1Taint(elt)) : void 0
570
+ });
550
571
  const marshalUpdateClusterRequestAutoUpgrade = (request, defaults) => ({
551
572
  enable: request.enable,
552
573
  maintenance_window: request.maintenanceWindow !== void 0 ? marshalMaintenanceWindow(request.maintenanceWindow) : void 0
@@ -576,15 +597,11 @@ const marshalUpdateClusterRequest = (request, defaults) => ({
576
597
  admission_plugins: request.admissionPlugins,
577
598
  apiserver_cert_sans: request.apiserverCertSans,
578
599
  auto_upgrade: request.autoUpgrade !== void 0 ? marshalUpdateClusterRequestAutoUpgrade(request.autoUpgrade) : void 0,
579
- autoscaler_config: request.autoscalerConfig !== void 0 ? marshalUpdateClusterRequestAutoscalerConfig(
580
- request.autoscalerConfig
581
- ) : void 0,
600
+ autoscaler_config: request.autoscalerConfig !== void 0 ? marshalUpdateClusterRequestAutoscalerConfig(request.autoscalerConfig) : void 0,
582
601
  description: request.description,
583
602
  feature_gates: request.featureGates,
584
603
  name: request.name,
585
- open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalUpdateClusterRequestOpenIDConnectConfig(
586
- request.openIdConnectConfig
587
- ) : void 0,
604
+ open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalUpdateClusterRequestOpenIDConnectConfig(request.openIdConnectConfig) : void 0,
588
605
  tags: request.tags
589
606
  });
590
607
  const marshalUpdatePoolRequestUpgradePolicy = (request, defaults) => ({
@@ -615,6 +632,9 @@ export {
615
632
  marshalCreatePoolRequest,
616
633
  marshalSetClusterACLRulesRequest,
617
634
  marshalSetClusterTypeRequest,
635
+ marshalSetPoolLabelsRequest,
636
+ marshalSetPoolStartupTaintsRequest,
637
+ marshalSetPoolTaintsRequest,
618
638
  marshalUpdateClusterRequest,
619
639
  marshalUpdatePoolRequest,
620
640
  marshalUpgradeClusterRequest,
@@ -5,6 +5,7 @@ export type CNI = 'unknown_cni' | 'cilium' | 'calico' | 'weave' | 'flannel' | 'k
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';
8
+ export type CoreV1TaintEffect = 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
8
9
  export type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
9
10
  export type ListNodesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
10
11
  export type ListPoolsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
@@ -23,6 +24,23 @@ export interface MaintenanceWindow {
23
24
  */
24
25
  day: MaintenanceWindowDayOfTheWeek;
25
26
  }
27
+ /**
28
+ * See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/.
29
+ */
30
+ export interface CoreV1Taint {
31
+ /**
32
+ * The taint key to be applied to a node.
33
+ */
34
+ key: string;
35
+ /**
36
+ * The taint value corresponding to the taint key.
37
+ */
38
+ value: string;
39
+ /**
40
+ * Effect defines the effects of Taint.
41
+ */
42
+ effect: CoreV1TaintEffect;
43
+ }
26
44
  export interface CreateClusterRequestPoolConfigUpgradePolicy {
27
45
  /**
28
46
  * The maximum number of nodes that can be not ready at the same time.
@@ -296,9 +314,9 @@ export interface CreateClusterRequestPoolConfig {
296
314
  zone: ScwZone;
297
315
  /**
298
316
  * * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
299
- * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
300
- * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
301
- * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead.
317
+ * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
318
+ * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
319
+ * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead.
302
320
  */
303
321
  rootVolumeType: PoolVolumeType;
304
322
  /**
@@ -313,6 +331,18 @@ export interface CreateClusterRequestPoolConfig {
313
331
  * 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.
314
332
  */
315
333
  securityGroupId?: string;
334
+ /**
335
+ * Kubernetes labels applied and reconciled on the nodes.
336
+ */
337
+ labels: Record<string, string>;
338
+ /**
339
+ * Kubernetes taints applied and reconciled on the nodes.
340
+ */
341
+ taints: CoreV1Taint[];
342
+ /**
343
+ * Kubernetes taints applied at node creation but not reconciled afterwards.
344
+ */
345
+ startupTaints: CoreV1Taint[];
316
346
  }
317
347
  export interface CreatePoolRequestUpgradePolicy {
318
348
  maxUnavailable?: number;
@@ -511,7 +541,7 @@ export interface Cluster {
511
541
  /**
512
542
  * @deprecated Defines whether ACL is available on the cluster.
513
543
  */
514
- aclAvailable?: boolean;
544
+ aclAvailable: boolean;
515
545
  /**
516
546
  * IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
517
547
  */
@@ -565,7 +595,7 @@ export interface Node {
565
595
  /**
566
596
  * @deprecated Conditions of the node. These conditions contain the Node Problem Detector conditions, as well as some in house conditions.
567
597
  */
568
- conditions?: Record<string, string>;
598
+ conditions: Record<string, string>;
569
599
  /**
570
600
  * Status of the node.
571
601
  */
@@ -662,9 +692,9 @@ export interface Pool {
662
692
  zone: ScwZone;
663
693
  /**
664
694
  * * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
665
- * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
666
- * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
667
- * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead.
695
+ * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
696
+ * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
697
+ * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead.
668
698
  */
669
699
  rootVolumeType: PoolVolumeType;
670
700
  /**
@@ -679,6 +709,18 @@ export interface Pool {
679
709
  * 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.
680
710
  */
681
711
  securityGroupId: string;
712
+ /**
713
+ * Kubernetes labels applied and reconciled on the nodes.
714
+ */
715
+ labels: Record<string, string>;
716
+ /**
717
+ * Kubernetes taints applied and reconciled on the nodes.
718
+ */
719
+ taints: CoreV1Taint[];
720
+ /**
721
+ * Kubernetes taints applied at node creation but not reconciled afterwards.
722
+ */
723
+ startupTaints: CoreV1Taint[];
682
724
  /**
683
725
  * Cluster region of the pool.
684
726
  */
@@ -961,9 +1003,9 @@ export type CreatePoolRequest = {
961
1003
  zone?: ScwZone;
962
1004
  /**
963
1005
  * * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
964
- * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
965
- * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
966
- * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead.
1006
+ * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
1007
+ * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
1008
+ * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead.
967
1009
  */
968
1010
  rootVolumeType?: PoolVolumeType;
969
1011
  /**
@@ -978,6 +1020,18 @@ export type CreatePoolRequest = {
978
1020
  * 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.
979
1021
  */
980
1022
  securityGroupId?: string;
1023
+ /**
1024
+ * Kubernetes labels applied and reconciled on the nodes.
1025
+ */
1026
+ labels?: Record<string, string>;
1027
+ /**
1028
+ * Kubernetes taints applied and reconciled on the nodes.
1029
+ */
1030
+ taints?: CoreV1Taint[];
1031
+ /**
1032
+ * Kubernetes taints applied at node creation but not reconciled afterwards.
1033
+ */
1034
+ startupTaints?: CoreV1Taint[];
981
1035
  };
982
1036
  export type DeleteACLRuleRequest = {
983
1037
  /**
@@ -1432,6 +1486,42 @@ export type SetClusterTypeRequest = {
1432
1486
  */
1433
1487
  type: string;
1434
1488
  };
1489
+ export type SetPoolLabelsRequest = {
1490
+ /**
1491
+ * Region to target. If none is passed will use default region from the config.
1492
+ */
1493
+ region?: ScwRegion;
1494
+ poolId: string;
1495
+ labels?: Record<string, string>;
1496
+ };
1497
+ export type SetPoolStartupTaintsRequest = {
1498
+ /**
1499
+ * Region to target. If none is passed will use default region from the config.
1500
+ */
1501
+ region?: ScwRegion;
1502
+ /**
1503
+ * ID of the pool to update.
1504
+ */
1505
+ poolId: string;
1506
+ /**
1507
+ * List of startup taints to set.
1508
+ */
1509
+ startupTaints?: CoreV1Taint[];
1510
+ };
1511
+ export type SetPoolTaintsRequest = {
1512
+ /**
1513
+ * Region to target. If none is passed will use default region from the config.
1514
+ */
1515
+ region?: ScwRegion;
1516
+ /**
1517
+ * ID of the pool to update.
1518
+ */
1519
+ poolId: string;
1520
+ /**
1521
+ * List of taints to set.
1522
+ */
1523
+ taints?: CoreV1Taint[];
1524
+ };
1435
1525
  export type UpdateClusterRequest = {
1436
1526
  /**
1437
1527
  * Region to target. If none is passed will use default region from the config.
@@ -3,6 +3,16 @@ export declare const ACLRuleRequest: {
3
3
  maxLength: number;
4
4
  };
5
5
  };
6
+ export declare const CoreV1Taint: {
7
+ key: {
8
+ maxLength: number;
9
+ minLength: number;
10
+ pattern: RegExp;
11
+ };
12
+ value: {
13
+ maxLength: number;
14
+ };
15
+ };
6
16
  export declare const CreateClusterRequest: {
7
17
  description: {
8
18
  maxLength: number;
@@ -3,6 +3,16 @@ const ACLRuleRequest = {
3
3
  maxLength: 2e3
4
4
  }
5
5
  };
6
+ const CoreV1Taint = {
7
+ key: {
8
+ maxLength: 316,
9
+ minLength: 1,
10
+ pattern: /^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$/
11
+ },
12
+ value: {
13
+ maxLength: 63
14
+ }
15
+ };
6
16
  const CreateClusterRequest = {
7
17
  description: {
8
18
  maxLength: 4096
@@ -153,6 +163,7 @@ const UpgradeClusterRequest = {
153
163
  };
154
164
  export {
155
165
  ACLRuleRequest,
166
+ CoreV1Taint,
156
167
  CreateClusterRequest,
157
168
  CreateClusterRequestAutoscalerConfig,
158
169
  CreateClusterRequestOpenIDConnectConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-k8s",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Scaleway SDK k8s",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.1.0"
30
+ "@scaleway/sdk-std": "2.1.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@scaleway/sdk-client": "^2.1.0"