Skip to content

Commit ae68cf4

Browse files
committed
feat: update generated APIs
1 parent 7e9abe7 commit ae68cf4

File tree

2 files changed

+84
-63
lines changed

2 files changed

+84
-63
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: 62 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export interface ClusterAutoUpgrade {
136136
export interface ClusterAutoscalerConfig {
137137
/** Disable the cluster autoscaler. */
138138
scaleDownDisabled: boolean
139-
/** How long after scale up that scale down evaluation resumes. */
139+
/** How long after scale up the scale down evaluation resumes. */
140140
scaleDownDelayAfterAdd: string
141141
/** Type of resource estimator to be used in scale up. */
142142
estimator: AutoscalerEstimator
@@ -248,17 +248,19 @@ export interface Pool {
248248
* when autoscaling is enabled on the pool.
249249
*/
250250
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-
*/
251+
/** Customization of the container runtime is available for each pool. */
256252
containerRuntime: Runtime
257253
/** Defines whether the autohealing feature is enabled for the pool. */
258254
autohealing: boolean
259-
/** Tags associated with the pool. */
255+
/**
256+
* Tags associated with the pool, see [managing
257+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
258+
*/
260259
tags: string[]
261-
/** Placement group ID in which all the nodes of the pool will be created. */
260+
/**
261+
* Placement group ID in which all the nodes of the pool will be created,
262+
* placement groups are limited to 20 instances.
263+
*/
262264
placementGroupId?: string
263265
/**
264266
* Kubelet arguments to be used by this pool. Note that this feature is
@@ -270,11 +272,15 @@ export interface Pool {
270272
/** Zone in which the pool's nodes will be spawned. */
271273
zone: Zone
272274
/**
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.
275+
* - `l_ssd` is a local block storage which means your system is stored locally
276+
* on your node's hypervisor. This type is not available for all node types
277+
* `sbs-5k` is a remote block storage which means your system is stored on a
278+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
279+
* faster remote block storage which means your system is stored on a
280+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
281+
* legacy remote block storage which means your system is stored on a
282+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
283+
* instead.
278284
*/
279285
rootVolumeType: PoolVolumeType
280286
/** System volume disk size. */
@@ -335,7 +341,7 @@ export interface CreateClusterRequestAutoUpgrade {
335341
export interface CreateClusterRequestAutoscalerConfig {
336342
/** Disable the cluster autoscaler. */
337343
scaleDownDisabled?: boolean
338-
/** How long after scale up that scale down evaluation resumes. */
344+
/** How long after scale up the scale down evaluation resumes. */
339345
scaleDownDelayAfterAdd?: string
340346
/** Type of resource estimator to be used in scale up. */
341347
estimator: AutoscalerEstimator
@@ -421,7 +427,10 @@ export interface CreateClusterRequestPoolConfig {
421427
* cloud providers in a Kosmos Cluster.
422428
*/
423429
nodeType: string
424-
/** Placement group ID in which all the nodes of the pool will be created. */
430+
/**
431+
* Placement group ID in which all the nodes of the pool will be created,
432+
* placement groups are limited to 20 instances.
433+
*/
425434
placementGroupId?: string
426435
/** Defines whether the autoscaling feature is enabled for the pool. */
427436
autoscaling: boolean
@@ -437,15 +446,14 @@ export interface CreateClusterRequestPoolConfig {
437446
* when autoscaling is enabled on the pool.
438447
*/
439448
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-
*/
449+
/** Customization of the container runtime is available for each pool. */
445450
containerRuntime: Runtime
446451
/** Defines whether the autohealing feature is enabled for the pool. */
447452
autohealing: boolean
448-
/** Tags associated with the pool. */
453+
/**
454+
* Tags associated with the pool, see [managing
455+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
456+
*/
449457
tags: string[]
450458
/**
451459
* Kubelet arguments to be used by this pool. Note that this feature is
@@ -457,11 +465,15 @@ export interface CreateClusterRequestPoolConfig {
457465
/** Zone in which the pool's nodes will be spawned. */
458466
zone: Zone
459467
/**
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.
468+
* - `l_ssd` is a local block storage which means your system is stored locally
469+
* on your node's hypervisor. This type is not available for all node types
470+
* `sbs-5k` is a remote block storage which means your system is stored on a
471+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
472+
* faster remote block storage which means your system is stored on a
473+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
474+
* legacy remote block storage which means your system is stored on a
475+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
476+
* instead.
465477
*/
466478
rootVolumeType: PoolVolumeType
467479
/** System volume disk size. */
@@ -563,7 +575,7 @@ export interface Cluster {
563575
updatedAt?: Date
564576
/** Autoscaler config for the cluster. */
565577
autoscalerConfig?: ClusterAutoscalerConfig
566-
/** Auto upgrade configuration of the cluster. */
578+
/** Auto upgrade Kubernetes version of the cluster. */
567579
autoUpgrade?: ClusterAutoUpgrade
568580
/** Defines whether a new Kubernetes version is available. */
569581
upgradeAvailable: boolean
@@ -646,7 +658,7 @@ export interface UpdateClusterRequestAutoUpgrade {
646658
export interface UpdateClusterRequestAutoscalerConfig {
647659
/** Disable the cluster autoscaler. */
648660
scaleDownDisabled?: boolean
649-
/** How long after scale up that scale down evaluation resumes. */
661+
/** How long after scale up the scale down evaluation resumes. */
650662
scaleDownDelayAfterAdd?: string
651663
/** Type of resource estimator to be used in scale up. */
652664
estimator: AutoscalerEstimator
@@ -775,8 +787,9 @@ export type CreateClusterRequest = {
775787
*/
776788
projectId?: string
777789
/**
778-
* Type of the cluster (possible values are kapsule, multicloud,
779-
* kapsule-dedicated-8, kapsule-dedicated-16).
790+
* Type of the cluster. See [list available cluster
791+
* types](#list-available-cluster-types-for-a-cluster) for a list of valid
792+
* types.
780793
*/
781794
type: string
782795
/** Cluster name. */
@@ -851,7 +864,10 @@ export type CreatePoolRequest = {
851864
* cloud providers in a Kosmos Cluster.
852865
*/
853866
nodeType: string
854-
/** Placement group ID in which all the nodes of the pool will be created. */
867+
/**
868+
* Placement group ID in which all the nodes of the pool will be created,
869+
* placement groups are limited to 20 instances.
870+
*/
855871
placementGroupId?: string
856872
/** Defines whether the autoscaling feature is enabled for the pool. */
857873
autoscaling: boolean
@@ -867,15 +883,14 @@ export type CreatePoolRequest = {
867883
* when autoscaling is enabled on the pool.
868884
*/
869885
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-
*/
886+
/** Customization of the container runtime is available for each pool. */
875887
containerRuntime?: Runtime
876888
/** Defines whether the autohealing feature is enabled for the pool. */
877889
autohealing: boolean
878-
/** Tags associated with the pool. */
890+
/**
891+
* Tags associated with the pool, see [managing
892+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
893+
*/
879894
tags?: string[]
880895
/**
881896
* Kubelet arguments to be used by this pool. Note that this feature is
@@ -887,11 +902,15 @@ export type CreatePoolRequest = {
887902
/** Zone in which the pool's nodes will be spawned. */
888903
zone?: Zone
889904
/**
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.
905+
* - `l_ssd` is a local block storage which means your system is stored locally
906+
* on your node's hypervisor. This type is not available for all node types
907+
* `sbs-5k` is a remote block storage which means your system is stored on a
908+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
909+
* faster remote block storage which means your system is stored on a
910+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
911+
* legacy remote block storage which means your system is stored on a
912+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
913+
* instead.
895914
*/
896915
rootVolumeType?: PoolVolumeType
897916
/** System volume disk size. */
@@ -1331,7 +1350,7 @@ export type UpdateClusterRequest = {
13311350
/** New autoscaler config for the cluster. */
13321351
autoscalerConfig?: UpdateClusterRequestAutoscalerConfig
13331352
/**
1334-
* New auto upgrade configuration for the cluster. Note that all fields need
1353+
* New auto upgrade configuration for the cluster. Note that all fields needs
13351354
* to be set.
13361355
*/
13371356
autoUpgrade?: UpdateClusterRequestAutoUpgrade

0 commit comments

Comments
 (0)