Skip to content

Commit 506a671

Browse files
feat: update generated apis (#1697)
Co-authored-by: philibeaux <[email protected]>
1 parent 701b91d commit 506a671

File tree

2 files changed

+95
-64
lines changed

2 files changed

+95
-64
lines changed

packages/clients/src/api/k8s/v1/api.gen.ts

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ export class API extends ParentAPI {
218218

219219
/**
220220
* Delete a Cluster. Delete a specific Kubernetes cluster and all its
221-
* associated pools and nodes. Note that this method will not delete any Load
222-
* Balancer or Block Volume that are associated with the cluster.
221+
* associated pools and nodes, and possibly its associated Load Balancers or
222+
* Block Volumes.
223223
*
224224
* @param request - The request {@link DeleteClusterRequest}
225225
* @returns A Promise of Cluster
@@ -260,8 +260,7 @@ export class API extends ParentAPI {
260260
/**
261261
* Change the Cluster type. Change the type of a specific Kubernetes cluster.
262262
* To see the possible values you can enter for the `type` field, [list
263-
* available cluster
264-
* types](#path-clusters-list-available-cluster-types-for-a-cluster).
263+
* available cluster types](#list-available-cluster-types-for-a-cluster).
265264
*
266265
* @param request - The request {@link SetClusterTypeRequest}
267266
* @returns A Promise of Cluster
@@ -332,7 +331,7 @@ export class API extends ParentAPI {
332331
* Reset the admin token of a Cluster. Reset the admin token for a specific
333332
* Kubernetes cluster. This will revoke the old admin token (which will not be
334333
* usable afterwards) and create a new one. Note that you will need to
335-
* download kubeconfig again to keep interacting with the cluster.
334+
* download the kubeconfig again to keep interacting with the cluster.
336335
*
337336
* @param request - The request {@link ResetClusterAdminTokenRequest}
338337
*/
@@ -347,7 +346,8 @@ export class API extends ParentAPI {
347346
/**
348347
* Migrate a cluster to SBS CSI. Enable the latest CSI compatible with
349348
* Scaleway Block Storage (SBS) and migrate all existing
350-
* PersistentVolumes/VolumeSnapshotContents to SBS.
349+
* PersistentVolumes/VolumeSnapshotContents to SBS. Make sure to have the
350+
* necessary Quota before running this command.
351351
*
352352
* @param request - The request {@link MigrateClusterToSBSCSIRequest}
353353
* @returns A Promise of Cluster
@@ -526,7 +526,7 @@ export class API extends ParentAPI {
526526
/**
527527
* Upgrade a Pool in a Cluster. Upgrade the Kubernetes version of a specific
528528
* pool. Note that it only works if the targeted version matches the cluster's
529-
* version.
529+
* version. This will drain and replace the nodes in that pool.
530530
*
531531
* @param request - The request {@link UpgradePoolRequest}
532532
* @returns A Promise of Pool
@@ -546,7 +546,8 @@ export class API extends ParentAPI {
546546

547547
/**
548548
* Update a Pool in a Cluster. Update the attributes of a specific pool, such
549-
* as its desired size, autoscaling settings, and tags.
549+
* as its desired size, autoscaling settings, and tags. To upgrade a pool, you
550+
* will need to use the dedicated endpoint.
550551
*
551552
* @param request - The request {@link UpdatePoolRequest}
552553
* @returns A Promise of Pool
@@ -701,11 +702,10 @@ export class API extends ParentAPI {
701702

702703
/**
703704
* Replace a Node in a Cluster. Replace a specific Node. The node will first
704-
* be cordoned (scheduling will be disabled on it). The existing pods on the
705-
* node will then be drained and rescheduled onto another schedulable node.
706-
* Note that when there is not enough space to reschedule all the pods (such
707-
* as in a one-node cluster), disruption of your applications can be
708-
* expected.
705+
* be drained and pods will be rescheduled onto another node. Note that when
706+
* there is not enough space to reschedule all the pods (such as in a one-node
707+
* cluster, or with specific constraints), disruption of your applications may
708+
* occur.
709709
*
710710
* @deprecated
711711
* @param request - The request {@link ReplaceNodeRequest}
@@ -724,10 +724,10 @@ export class API extends ParentAPI {
724724

725725
/**
726726
* Reboot a Node in a Cluster. Reboot a specific Node. The node will first be
727-
* cordoned (scheduling will be disabled on it). The existing pods on the node
728-
* will then be drained and rescheduled onto another schedulable node. Note
729-
* that when there is not enough space to reschedule all the pods (such as in
730-
* a one-node cluster), disruption of your applications can be expected.
727+
* drained and pods will be rescheduled onto another node. Note that when
728+
* there is not enough space to reschedule all the pods (such as in a one-node
729+
* cluster, or with specific constraints), disruption of your applications may
730+
* occur.
731731
*
732732
* @param request - The request {@link RebootNodeRequest}
733733
* @returns A Promise of Node
@@ -744,9 +744,11 @@ export class API extends ParentAPI {
744744
)
745745

746746
/**
747-
* Delete a Node in a Cluster. Delete a specific Node. Note that when there is
748-
* not enough space to reschedule all the pods (such as in a one-node
749-
* cluster), disruption of your applications can be expected.
747+
* Delete a Node in a Cluster. Delete a specific Node. The node will first be
748+
* drained and pods will be rescheduled onto another node. Note that when
749+
* there is not enough space to reschedule all the pods (such as in a one-node
750+
* cluster, or with specific constraints), disruption of your applications may
751+
* occur.
750752
*
751753
* @param request - The request {@link DeleteNodeRequest}
752754
* @returns A Promise of Node

packages/clients/src/api/k8s/v1/types.gen.ts

Lines changed: 73 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ export type ListClustersRequestOrderBy =
5050
| 'version_asc'
5151
| 'version_desc'
5252

53-
export type ListNodesRequestOrderBy = 'created_at_asc' | 'created_at_desc'
53+
export type ListNodesRequestOrderBy =
54+
| 'created_at_asc'
55+
| 'created_at_desc'
56+
| 'updated_at_asc'
57+
| 'updated_at_desc'
58+
| 'name_asc'
59+
| 'name_desc'
60+
| 'status_asc'
61+
| 'status_desc'
62+
| 'version_asc'
63+
| 'version_desc'
5464

5565
export type ListPoolsRequestOrderBy =
5666
| 'created_at_asc'
@@ -136,7 +146,7 @@ export interface ClusterAutoUpgrade {
136146
export interface ClusterAutoscalerConfig {
137147
/** Disable the cluster autoscaler. */
138148
scaleDownDisabled: boolean
139-
/** How long after scale up that scale down evaluation resumes. */
149+
/** How long after scale up the scale down evaluation resumes. */
140150
scaleDownDelayAfterAdd: string
141151
/** Type of resource estimator to be used in scale up. */
142152
estimator: AutoscalerEstimator
@@ -248,17 +258,19 @@ export interface Pool {
248258
* when autoscaling is enabled on the pool.
249259
*/
250260
maxSize: number
251-
/**
252-
* Customization of the container runtime is available for each pool. Note
253-
* that `docker` has been deprecated since version 1.20 and will be removed by
254-
* version 1.24.
255-
*/
261+
/** Customization of the container runtime is available for each pool. */
256262
containerRuntime: Runtime
257263
/** Defines whether the autohealing feature is enabled for the pool. */
258264
autohealing: boolean
259-
/** Tags associated with the pool. */
265+
/**
266+
* Tags associated with the pool, see [managing
267+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
268+
*/
260269
tags: string[]
261-
/** Placement group ID in which all the nodes of the pool will be created. */
270+
/**
271+
* Placement group ID in which all the nodes of the pool will be created,
272+
* placement groups are limited to 20 instances.
273+
*/
262274
placementGroupId?: string
263275
/**
264276
* Kubelet arguments to be used by this pool. Note that this feature is
@@ -270,11 +282,15 @@ export interface Pool {
270282
/** Zone in which the pool's nodes will be spawned. */
271283
zone: Zone
272284
/**
273-
* Defines the system volume disk type. Two different types of volume
274-
* (`volume_type`) are provided: `l_ssd` is a local block storage which means
275-
* your system is stored locally on your node's hypervisor. `b_ssd` is a
276-
* remote block storage which means your system is stored on a centralized and
277-
* resilient cluster.
285+
* - `l_ssd` is a local block storage which means your system is stored locally
286+
* on your node's hypervisor. This type is not available for all node types
287+
* `sbs-5k` is a remote block storage which means your system is stored on a
288+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
289+
* faster remote block storage which means your system is stored on a
290+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
291+
* legacy remote block storage which means your system is stored on a
292+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
293+
* instead.
278294
*/
279295
rootVolumeType: PoolVolumeType
280296
/** System volume disk size. */
@@ -335,7 +351,7 @@ export interface CreateClusterRequestAutoUpgrade {
335351
export interface CreateClusterRequestAutoscalerConfig {
336352
/** Disable the cluster autoscaler. */
337353
scaleDownDisabled?: boolean
338-
/** How long after scale up that scale down evaluation resumes. */
354+
/** How long after scale up the scale down evaluation resumes. */
339355
scaleDownDelayAfterAdd?: string
340356
/** Type of resource estimator to be used in scale up. */
341357
estimator: AutoscalerEstimator
@@ -421,7 +437,10 @@ export interface CreateClusterRequestPoolConfig {
421437
* cloud providers in a Kosmos Cluster.
422438
*/
423439
nodeType: string
424-
/** Placement group ID in which all the nodes of the pool will be created. */
440+
/**
441+
* Placement group ID in which all the nodes of the pool will be created,
442+
* placement groups are limited to 20 instances.
443+
*/
425444
placementGroupId?: string
426445
/** Defines whether the autoscaling feature is enabled for the pool. */
427446
autoscaling: boolean
@@ -437,15 +456,14 @@ export interface CreateClusterRequestPoolConfig {
437456
* when autoscaling is enabled on the pool.
438457
*/
439458
maxSize?: number
440-
/**
441-
* Customization of the container runtime is available for each pool. Note
442-
* that `docker` has been deprecated since version 1.20 and will be removed by
443-
* version 1.24.
444-
*/
459+
/** Customization of the container runtime is available for each pool. */
445460
containerRuntime: Runtime
446461
/** Defines whether the autohealing feature is enabled for the pool. */
447462
autohealing: boolean
448-
/** Tags associated with the pool. */
463+
/**
464+
* Tags associated with the pool, see [managing
465+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
466+
*/
449467
tags: string[]
450468
/**
451469
* Kubelet arguments to be used by this pool. Note that this feature is
@@ -457,11 +475,15 @@ export interface CreateClusterRequestPoolConfig {
457475
/** Zone in which the pool's nodes will be spawned. */
458476
zone: Zone
459477
/**
460-
* Defines the system volume disk type. Two different types of volume
461-
* (`volume_type`) are provided: `l_ssd` is a local block storage which means
462-
* your system is stored locally on your node's hypervisor. `b_ssd` is a
463-
* remote block storage which means your system is stored on a centralized and
464-
* resilient cluster.
478+
* - `l_ssd` is a local block storage which means your system is stored locally
479+
* on your node's hypervisor. This type is not available for all node types
480+
* `sbs-5k` is a remote block storage which means your system is stored on a
481+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
482+
* faster remote block storage which means your system is stored on a
483+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
484+
* legacy remote block storage which means your system is stored on a
485+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
486+
* instead.
465487
*/
466488
rootVolumeType: PoolVolumeType
467489
/** System volume disk size. */
@@ -563,7 +585,7 @@ export interface Cluster {
563585
updatedAt?: Date
564586
/** Autoscaler config for the cluster. */
565587
autoscalerConfig?: ClusterAutoscalerConfig
566-
/** Auto upgrade configuration of the cluster. */
588+
/** Auto upgrade Kubernetes version of the cluster. */
567589
autoUpgrade?: ClusterAutoUpgrade
568590
/** Defines whether a new Kubernetes version is available. */
569591
upgradeAvailable: boolean
@@ -646,7 +668,7 @@ export interface UpdateClusterRequestAutoUpgrade {
646668
export interface UpdateClusterRequestAutoscalerConfig {
647669
/** Disable the cluster autoscaler. */
648670
scaleDownDisabled?: boolean
649-
/** How long after scale up that scale down evaluation resumes. */
671+
/** How long after scale up the scale down evaluation resumes. */
650672
scaleDownDelayAfterAdd?: string
651673
/** Type of resource estimator to be used in scale up. */
652674
estimator: AutoscalerEstimator
@@ -775,8 +797,9 @@ export type CreateClusterRequest = {
775797
*/
776798
projectId?: string
777799
/**
778-
* Type of the cluster (possible values are kapsule, multicloud,
779-
* kapsule-dedicated-8, kapsule-dedicated-16).
800+
* Type of the cluster. See [list available cluster
801+
* types](#list-available-cluster-types-for-a-cluster) for a list of valid
802+
* types.
780803
*/
781804
type: string
782805
/** Cluster name. */
@@ -851,7 +874,10 @@ export type CreatePoolRequest = {
851874
* cloud providers in a Kosmos Cluster.
852875
*/
853876
nodeType: string
854-
/** Placement group ID in which all the nodes of the pool will be created. */
877+
/**
878+
* Placement group ID in which all the nodes of the pool will be created,
879+
* placement groups are limited to 20 instances.
880+
*/
855881
placementGroupId?: string
856882
/** Defines whether the autoscaling feature is enabled for the pool. */
857883
autoscaling: boolean
@@ -867,15 +893,14 @@ export type CreatePoolRequest = {
867893
* when autoscaling is enabled on the pool.
868894
*/
869895
maxSize?: number
870-
/**
871-
* Customization of the container runtime is available for each pool. Note
872-
* that `docker` has been deprecated since version 1.20 and will be removed by
873-
* version 1.24.
874-
*/
896+
/** Customization of the container runtime is available for each pool. */
875897
containerRuntime?: Runtime
876898
/** Defines whether the autohealing feature is enabled for the pool. */
877899
autohealing: boolean
878-
/** Tags associated with the pool. */
900+
/**
901+
* Tags associated with the pool, see [managing
902+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
903+
*/
879904
tags?: string[]
880905
/**
881906
* Kubelet arguments to be used by this pool. Note that this feature is
@@ -887,11 +912,15 @@ export type CreatePoolRequest = {
887912
/** Zone in which the pool's nodes will be spawned. */
888913
zone?: Zone
889914
/**
890-
* Defines the system volume disk type. Two different types of volume
891-
* (`volume_type`) are provided: `l_ssd` is a local block storage which means
892-
* your system is stored locally on your node's hypervisor. `b_ssd` is a
893-
* remote block storage which means your system is stored on a centralized and
894-
* resilient cluster.
915+
* - `l_ssd` is a local block storage which means your system is stored locally
916+
* on your node's hypervisor. This type is not available for all node types
917+
* `sbs-5k` is a remote block storage which means your system is stored on a
918+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
919+
* faster remote block storage which means your system is stored on a
920+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
921+
* legacy remote block storage which means your system is stored on a
922+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
923+
* instead.
895924
*/
896925
rootVolumeType?: PoolVolumeType
897926
/** System volume disk size. */
@@ -1331,7 +1360,7 @@ export type UpdateClusterRequest = {
13311360
/** New autoscaler config for the cluster. */
13321361
autoscalerConfig?: UpdateClusterRequestAutoscalerConfig
13331362
/**
1334-
* New auto upgrade configuration for the cluster. Note that all fields need
1363+
* New auto upgrade configuration for the cluster. Note that all fields needs
13351364
* to be set.
13361365
*/
13371366
autoUpgrade?: UpdateClusterRequestAutoUpgrade

0 commit comments

Comments
 (0)