Skip to content

Commit 2393951

Browse files
authored
docs(k8s): revamp of the documentation (#515)
1 parent 22f5353 commit 2393951

File tree

3 files changed

+253
-269
lines changed

3 files changed

+253
-269
lines changed

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

Lines changed: 49 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ export class API extends ParentAPI {
104104
)
105105

106106
/**
107-
* This method allows to list all the existing Kubernetes clusters in an
108-
* account.
107+
* List all the existing Kubernetes clusters in a specific Region.
109108
*
110109
* @param request - The request {@link ListClustersRequest}
111110
* @returns A Promise of ListClustersResponse
@@ -114,7 +113,7 @@ export class API extends ParentAPI {
114113
enrichForPagination('clusters', this.pageOfListClusters, request)
115114

116115
/**
117-
* This method allows to create a new Kubernetes cluster on an account.
116+
* Creates a new Kubernetes cluster on a Scaleway account.
118117
*
119118
* @param request - The request {@link CreateClusterRequest}
120119
* @returns A Promise of Cluster
@@ -136,7 +135,7 @@ export class API extends ParentAPI {
136135
)
137136

138137
/**
139-
* This method allows to get details about a specific Kubernetes cluster.
138+
* Get details about a specific Kubernetes cluster.
140139
*
141140
* @param request - The request {@link GetClusterRequest}
142141
* @returns A Promise of Cluster
@@ -174,8 +173,10 @@ export class API extends ParentAPI {
174173
)
175174

176175
/**
177-
* This method allows to update a specific Kubernetes cluster. Note that this
178-
* method is not made to upgrade a Kubernetes cluster.
176+
* Update a specific Kubernetes cluster. Note that this method is designed to
177+
* update details such as name, description, tags and configuration. However,
178+
* you cannot upgrade a cluster with this method. To do so, use the dedicated
179+
* endpoint.
179180
*
180181
* @param request - The request {@link UpdateClusterRequest}
181182
* @returns A Promise of Cluster
@@ -197,9 +198,9 @@ export class API extends ParentAPI {
197198
)
198199

199200
/**
200-
* This method allows to delete a specific cluster and all its associated
201-
* pools and nodes. Note that this method will not delete any Load Balancers
202-
* or Block Volumes that are associated with the cluster.
201+
* Deletes a specific cluster and all its associated pools and nodes. Note
202+
* that this method will not delete any Load Balancers or Block Volumes that
203+
* are associated with the cluster.
203204
*
204205
* @param request - The request {@link DeleteClusterRequest}
205206
* @returns A Promise of Cluster
@@ -221,8 +222,8 @@ export class API extends ParentAPI {
221222
)
222223

223224
/**
224-
* This method allows to upgrade a specific Kubernetes cluster and/or its
225-
* associated pools to a specific and supported Kubernetes version.
225+
* Upgrades a specific Kubernetes cluster and/or its associated pools to a
226+
* specific and supported Kubernetes version.
226227
*
227228
* @param request - The request {@link UpgradeClusterRequest}
228229
* @returns A Promise of Cluster
@@ -247,10 +248,10 @@ export class API extends ParentAPI {
247248
)
248249

249250
/**
250-
* This method allows to list the versions that a specific Kubernetes cluster
251-
* is allowed to upgrade to. Note that it will be every patch version greater
252-
* than the actual one as well a one minor version ahead of the actual one.
253-
* Upgrades skipping a minor version will not work.
251+
* List the versions that a specific Kubernetes cluster is allowed to upgrade
252+
* to. Results will comprise every patch version greater than the current
253+
* patch, as well as one minor version ahead of the current version. Any
254+
* upgrade skipping a minor version will not work.
254255
*
255256
* @param request - The request {@link ListClusterAvailableVersionsRequest}
256257
* @returns A Promise of ListClusterAvailableVersionsResponse
@@ -289,11 +290,10 @@ export class API extends ParentAPI {
289290
})
290291

291292
/**
292-
* This method allows to reset the admin token for a specific Kubernetes
293-
* cluster. This will invalidate the old admin token (which will not be usable
294-
* after) and create a new one. Note that the redownload of the kubeconfig
295-
* will be necessary to keep interacting with the cluster (if the old admin
296-
* token was used).
293+
* Reset the admin token for a specific Kubernetes cluster. This will
294+
* invalidate the old admin token (which will not be usable afterwards) and
295+
* create a new one. Note that you will need to redownload kubeconfig in order
296+
* to keep interacting with the cluster.
297297
*
298298
* @param request - The request {@link ResetClusterAdminTokenRequest}
299299
*/
@@ -334,8 +334,7 @@ export class API extends ParentAPI {
334334
)
335335

336336
/**
337-
* This method allows to list all the existing pools for a specific Kubernetes
338-
* cluster.
337+
* List all the existing pools for a specific Kubernetes cluster.
339338
*
340339
* @param request - The request {@link ListPoolsRequest}
341340
* @returns A Promise of ListPoolsResponse
@@ -344,7 +343,7 @@ export class API extends ParentAPI {
344343
enrichForPagination('pools', this.pageOfListPools, request)
345344

346345
/**
347-
* This method allows to create a new pool in a specific Kubernetes cluster.
346+
* Create a new pool in a specific Kubernetes cluster.
348347
*
349348
* @param request - The request {@link CreatePoolRequest}
350349
* @returns A Promise of Pool
@@ -366,7 +365,7 @@ export class API extends ParentAPI {
366365
)
367366

368367
/**
369-
* This method allows to get details about a specific pool.
368+
* Get details about a specific pool in a Kubernetes cluster.
370369
*
371370
* @param request - The request {@link GetPoolRequest}
372371
* @returns A Promise of Pool
@@ -403,9 +402,8 @@ export class API extends ParentAPI {
403402
)
404403

405404
/**
406-
* This method allows to upgrade the Kubernetes version of a specific pool.
407-
* Note that this will work when the targeted version is the same than the
408-
* version of the cluster.
405+
* Upgrade the Kubernetes version of a specific pool. Note that this will work
406+
* when the targeted version is the same than the version of the cluster.
409407
*
410408
* @param request - The request {@link UpgradePoolRequest}
411409
* @returns A Promise of Pool
@@ -427,8 +425,8 @@ export class API extends ParentAPI {
427425
)
428426

429427
/**
430-
* This method allows to update some attributes of a specific pool such as the
431-
* size, the autoscaling enablement, the tags, ...
428+
* Update attributes of a specific pool, such as size, autoscaling settings,
429+
* and tags.
432430
*
433431
* @param request - The request {@link UpdatePoolRequest}
434432
* @returns A Promise of Pool
@@ -450,8 +448,8 @@ export class API extends ParentAPI {
450448
)
451449

452450
/**
453-
* This method allows to delete a specific pool from a cluster, deleting all
454-
* the nodes associated with it.
451+
* Delete a specific pool from a cluster. All of the pool's nodes will also be
452+
* deleted.
455453
*
456454
* @param request - The request {@link DeletePoolRequest}
457455
* @returns A Promise of Pool
@@ -469,8 +467,8 @@ export class API extends ParentAPI {
469467
)
470468

471469
/**
472-
* This method returns metadata about a Kosmos node, it is not intended to be
473-
* directly called by end users, rather by kapsule-node-agent.
470+
* Get metadata about a Kosmos node. This method is not intended to be
471+
* directly called by end users, only by the kapsule-node-agent.
474472
*
475473
* @param request - The request {@link CreateExternalNodeRequest}
476474
* @returns A Promise of ExternalNode
@@ -513,8 +511,7 @@ export class API extends ParentAPI {
513511
)
514512

515513
/**
516-
* This method allows to list all the existing nodes for a specific Kubernetes
517-
* cluster.
514+
* List all the existing nodes for a specific Kubernetes cluster.
518515
*
519516
* @param request - The request {@link ListNodesRequest}
520517
* @returns A Promise of ListNodesResponse
@@ -523,7 +520,7 @@ export class API extends ParentAPI {
523520
enrichForPagination('nodes', this.pageOfListNodes, request)
524521

525522
/**
526-
* This method allows to get details about a specific Kubernetes node.
523+
* Get details about a specific Kubernetes node.
527524
*
528525
* @param request - The request {@link GetNodeRequest}
529526
* @returns A Promise of Node
@@ -560,13 +557,12 @@ export class API extends ParentAPI {
560557
)
561558

562559
/**
563-
* This method allows to replace a specific node. The node will be set
564-
* cordoned, meaning that scheduling will be disabled. Then the existing pods
565-
* on the node will be drained and reschedule onto another schedulable node.
566-
* Then the node will be deleted, and a new one will be created after the
567-
* deletion. Note that when there is not enough space to reschedule all the
568-
* pods (in a one node cluster for instance), you may experience some
569-
* disruption of your applications.
560+
* Replace a specific node. The node will be set cordoned, meaning that
561+
* scheduling will be disabled. Then the existing pods on the node will be
562+
* drained and reschedule onto another schedulable node. Then the node will be
563+
* deleted, and a new one will be created after the deletion. Note that when
564+
* there is not enough space to reschedule all the pods (in a one node cluster
565+
* for instance), you may experience some disruption of your applications.
570566
*
571567
* @deprecated
572568
* @param request - The request {@link ReplaceNodeRequest}
@@ -587,12 +583,11 @@ export class API extends ParentAPI {
587583
)
588584

589585
/**
590-
* This method allows to reboot a specific node. This node will frist be
591-
* cordoned, meaning that scheduling will be disabled. Then the existing pods
592-
* on the node will be drained and reschedule onto another schedulable node.
593-
* Note that when there is not enough space to reschedule all the pods (in a
594-
* one node cluster for instance), you may experience some disruption of your
595-
* applications.
586+
* Reboot a specific node. This node will first be cordoned, meaning that
587+
* scheduling will be disabled. Then the existing pods on the node will be
588+
* drained and rescheduled onto another schedulable node. Note that when there
589+
* is not enough space to reschedule all the pods (in a one-node cluster, for
590+
* instance), you may experience some disruption of your applications.
596591
*
597592
* @param request - The request {@link RebootNodeRequest}
598593
* @returns A Promise of Node
@@ -612,9 +607,9 @@ export class API extends ParentAPI {
612607
)
613608

614609
/**
615-
* This method allows to delete a specific node. Note that when there is not
616-
* enough space to reschedule all the pods (in a one node cluster for
617-
* instance), you may experience some disruption of your applications.
610+
* Delete a specific node. Note that when there is not enough space to
611+
* reschedule all the pods (in a one-node cluster for instance), you may
612+
* experience some disruption of your applications.
618613
*
619614
* @param request - The request {@link DeleteNodeRequest}
620615
* @returns A Promise of Node
@@ -636,8 +631,7 @@ export class API extends ParentAPI {
636631
)
637632

638633
/**
639-
* This method allows to list all available versions for the creation of a new
640-
* Kubernetes cluster.
634+
* List all available versions for the creation of a new Kubernetes cluster.
641635
*
642636
* @param request - The request {@link ListVersionsRequest}
643637
* @returns A Promise of ListVersionsResponse
@@ -655,8 +649,7 @@ export class API extends ParentAPI {
655649
)
656650

657651
/**
658-
* This method allows to get a specific Kubernetes version and the details
659-
* about the version.
652+
* Get a specific Kubernetes version and the details about the version.
660653
*
661654
* @param request - The request {@link GetVersionRequest}
662655
* @returns A Promise of Version

0 commit comments

Comments
 (0)