Skip to content

Commit f29bf02

Browse files
authored
docs(k8s): revamp (#653)
1 parent 4307277 commit f29bf02

File tree

3 files changed

+267
-281
lines changed

3 files changed

+267
-281
lines changed

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

Lines changed: 48 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ export class API extends ParentAPI {
106106
)
107107

108108
/**
109-
* List all clusters. List all the existing Kubernetes clusters in a specific
110-
* Region.
109+
* List Clusters. List all existing Kubernetes clusters in a specific region.
111110
*
112111
* @param request - The request {@link ListClustersRequest}
113112
* @returns A Promise of ListClustersResponse
@@ -116,8 +115,7 @@ export class API extends ParentAPI {
116115
enrichForPagination('clusters', this.pageOfListClusters, request)
117116

118117
/**
119-
* Create a new cluster. Create a new Kubernetes cluster on a Scaleway
120-
* account.
118+
* Create a new Cluster. Create a new Kubernetes cluster in a Scaleway region.
121119
*
122120
* @param request - The request {@link CreateClusterRequest}
123121
* @returns A Promise of Cluster
@@ -139,8 +137,7 @@ export class API extends ParentAPI {
139137
)
140138

141139
/**
142-
* Get specific cluster information. Get details about a specific Kubernetes
143-
* cluster.
140+
* Get a Cluster. Retrieve information about a specific Kubernetes cluster.
144141
*
145142
* @param request - The request {@link GetClusterRequest}
146143
* @returns A Promise of Cluster
@@ -178,10 +175,9 @@ export class API extends ParentAPI {
178175
)
179176

180177
/**
181-
* Update a cluster. Update a specific Kubernetes cluster. Note that this
182-
* method is designed to update details such as name, description, tags and
183-
* configuration. However, you cannot upgrade a cluster with this method. To
184-
* do so, use the dedicated endpoint.
178+
* Update a Cluster. Update information on a specific Kubernetes cluster. You
179+
* can update details such as its name, description, tags and configuration.
180+
* To upgrade a cluster, you will need to use the dedicated endpoint.
185181
*
186182
* @param request - The request {@link UpdateClusterRequest}
187183
* @returns A Promise of Cluster
@@ -203,9 +199,9 @@ export class API extends ParentAPI {
203199
)
204200

205201
/**
206-
* Delete a cluster. Delete a specific cluster and all its associated pools
207-
* and nodes. Note that this method will not delete any Load Balancers or
208-
* Block Volumes that are associated with the cluster.
202+
* Delete a Cluster. Delete a specific Kubernetes cluster and all its
203+
* associated pools and nodes. Note that this method will not delete any Load
204+
* Balancer or Block Volume that are associated with the cluster.
209205
*
210206
* @param request - The request {@link DeleteClusterRequest}
211207
* @returns A Promise of Cluster
@@ -227,7 +223,7 @@ export class API extends ParentAPI {
227223
)
228224

229225
/**
230-
* Upgrade a cluster. Upgrade a specific Kubernetes cluster and/or its
226+
* Upgrade a Cluster. Upgrade a specific Kubernetes cluster and possibly its
231227
* associated pools to a specific and supported Kubernetes version.
232228
*
233229
* @param request - The request {@link UpgradeClusterRequest}
@@ -253,7 +249,7 @@ export class API extends ParentAPI {
253249
)
254250

255251
/**
256-
* Change type of a cluster. Change type of a specific Kubernetes cluster.
252+
* Change the Cluster type. Change the type of a specific Kubernetes cluster.
257253
*
258254
* @param request - The request {@link SetClusterTypeRequest}
259255
* @returns A Promise of Cluster
@@ -278,8 +274,8 @@ export class API extends ParentAPI {
278274
)
279275

280276
/**
281-
* List available versions for a cluster. List the versions that a specific
282-
* Kubernetes cluster is allowed to upgrade to. Results will comprise every
277+
* List available versions for a Cluster. List the versions that a specific
278+
* Kubernetes cluster is allowed to upgrade to. Results will include every
283279
* patch version greater than the current patch, as well as one minor version
284280
* ahead of the current version. Any upgrade skipping a minor version will not
285281
* work.
@@ -321,10 +317,10 @@ export class API extends ParentAPI {
321317
})
322318

323319
/**
324-
* Reset the admin token of a cluster. Reset the admin token for a specific
325-
* Kubernetes cluster. This will invalidate the old admin token (which will
326-
* not be usable afterwards) and create a new one. Note that you will need to
327-
* redownload kubeconfig in order to keep interacting with the cluster.
320+
* Reset the admin token of a Cluster. Reset the admin token for a specific
321+
* Kubernetes cluster. This will revoke the old admin token (which will not be
322+
* usable afterwards) and create a new one. Note that you will need to
323+
* download kubeconfig again to keep interacting with the cluster.
328324
*
329325
* @param request - The request {@link ResetClusterAdminTokenRequest}
330326
*/
@@ -365,7 +361,7 @@ export class API extends ParentAPI {
365361
)
366362

367363
/**
368-
* List all the pools in a cluster. List all the existing pools for a specific
364+
* List Pools in a Cluster. List all the existing pools for a specific
369365
* Kubernetes cluster.
370366
*
371367
* @param request - The request {@link ListPoolsRequest}
@@ -375,7 +371,7 @@ export class API extends ParentAPI {
375371
enrichForPagination('pools', this.pageOfListPools, request)
376372

377373
/**
378-
* Create a new pool in a cluster. Create a new pool in a specific Kubernetes
374+
* Create a new Pool in a Cluster. Create a new pool in a specific Kubernetes
379375
* cluster.
380376
*
381377
* @param request - The request {@link CreatePoolRequest}
@@ -398,8 +394,8 @@ export class API extends ParentAPI {
398394
)
399395

400396
/**
401-
* Get a pool in a cluster. Get details about a specific pool in a Kubernetes
402-
* cluster.
397+
* Get a Pool in a Cluster. Retrieve details about a specific pool in a
398+
* Kubernetes cluster.
403399
*
404400
* @param request - The request {@link GetPoolRequest}
405401
* @returns A Promise of Pool
@@ -436,9 +432,9 @@ export class API extends ParentAPI {
436432
)
437433

438434
/**
439-
* Upgrade a pool in a cluster. Upgrade the Kubernetes version of a specific
440-
* pool. Note that this will work when the targeted version is the same than
441-
* the version of the cluster.
435+
* Upgrade a Pool in a Cluster. Upgrade the Kubernetes version of a specific
436+
* pool. Note that it only works if the targeted version matches the cluster's
437+
* version.
442438
*
443439
* @param request - The request {@link UpgradePoolRequest}
444440
* @returns A Promise of Pool
@@ -460,8 +456,8 @@ export class API extends ParentAPI {
460456
)
461457

462458
/**
463-
* Update a pool in a cluster. Update attributes of a specific pool, such as
464-
* size, autoscaling settings, and tags.
459+
* Update a Pool in a Cluster. Update the attributes of a specific pool, such
460+
* as its desired size, autoscaling settings, and tags.
465461
*
466462
* @param request - The request {@link UpdatePoolRequest}
467463
* @returns A Promise of Pool
@@ -483,8 +479,8 @@ export class API extends ParentAPI {
483479
)
484480

485481
/**
486-
* Delete a pool in a cluster. Delete a specific pool from a cluster. All of
487-
* the pool's nodes will also be deleted.
482+
* Delete a Pool in a Cluster. Delete a specific pool from a cluster. Note
483+
* that all the pool's nodes will also be deleted.
488484
*
489485
* @param request - The request {@link DeletePoolRequest}
490486
* @returns A Promise of Pool
@@ -502,8 +498,8 @@ export class API extends ParentAPI {
502498
)
503499

504500
/**
505-
* Create a Kosmos node. Get metadata about a Kosmos node. This method is not
506-
* intended to be directly called by end users, only by the
501+
* Create a Kosmos node. Retrieve metadata for a Kosmos node. This method is
502+
* not intended to be called by end users but rather programmatically by the
507503
* kapsule-node-agent.
508504
*
509505
* @param request - The request {@link CreateExternalNodeRequest}
@@ -547,7 +543,7 @@ export class API extends ParentAPI {
547543
)
548544

549545
/**
550-
* List all the nodes in a cluster. List all the existing nodes for a specific
546+
* List Nodes in a Cluster. List all the existing nodes for a specific
551547
* Kubernetes cluster.
552548
*
553549
* @param request - The request {@link ListNodesRequest}
@@ -557,7 +553,7 @@ export class API extends ParentAPI {
557553
enrichForPagination('nodes', this.pageOfListNodes, request)
558554

559555
/**
560-
* Get a node in a cluster. Get details about a specific Kubernetes node.
556+
* Get a Node in a Cluster. Retrieve details about a specific Kubernetes Node.
561557
*
562558
* @param request - The request {@link GetNodeRequest}
563559
* @returns A Promise of Node
@@ -594,13 +590,12 @@ export class API extends ParentAPI {
594590
)
595591

596592
/**
597-
* Replace a node in a cluster. Replace a specific node. The node will be set
598-
* cordoned, meaning that scheduling will be disabled. Then the existing pods
599-
* on the node will be drained and reschedule onto another schedulable node.
600-
* Then the node will be deleted, and a new one will be created after the
601-
* deletion. Note that when there is not enough space to reschedule all the
602-
* pods (in a one node cluster for instance), you may experience some
603-
* disruption of your applications.
593+
* Replace a Node in a Cluster. Replace a specific Node. The node will first
594+
* be cordoned (scheduling will be disabled on it). The existing pods on the
595+
* node will then be drained and rescheduled onto another schedulable node.
596+
* Note that when there is not enough space to reschedule all the pods (such
597+
* as in a one-node cluster), disruption of your applications can be
598+
* expected.
604599
*
605600
* @deprecated
606601
* @param request - The request {@link ReplaceNodeRequest}
@@ -621,12 +616,11 @@ export class API extends ParentAPI {
621616
)
622617

623618
/**
624-
* Reboot a node in a cluster. Reboot a specific node. This node will first be
625-
* cordoned, meaning that scheduling will be disabled. Then the existing pods
626-
* on the node will be drained and rescheduled onto another schedulable node.
627-
* Note that when there is not enough space to reschedule all the pods (in a
628-
* one-node cluster, for instance), you may experience some disruption of your
629-
* applications.
619+
* Reboot a Node in a Cluster. Reboot a specific Node. The node will first be
620+
* cordoned (scheduling will be disabled on it). The existing pods on the node
621+
* will then be drained and rescheduled onto another schedulable node. Note
622+
* that when there is not enough space to reschedule all the pods (such as in
623+
* a one-node cluster), disruption of your applications can be expected.
630624
*
631625
* @param request - The request {@link RebootNodeRequest}
632626
* @returns A Promise of Node
@@ -646,9 +640,9 @@ export class API extends ParentAPI {
646640
)
647641

648642
/**
649-
* Delete a node in a cluster. Delete a specific node. Note that when there is
650-
* not enough space to reschedule all the pods (in a one-node cluster for
651-
* instance), you may experience some disruption of your applications.
643+
* Delete a Node in a Cluster. Delete a specific Node. Note that when there is
644+
* not enough space to reschedule all the pods (such as in a one-node
645+
* cluster), disruption of your applications can be expected.
652646
*
653647
* @param request - The request {@link DeleteNodeRequest}
654648
* @returns A Promise of Node
@@ -670,7 +664,7 @@ export class API extends ParentAPI {
670664
)
671665

672666
/**
673-
* List all available versions. List all available versions for the creation
667+
* List all available Versions. List all available versions for the creation
674668
* of a new Kubernetes cluster.
675669
*
676670
* @param request - The request {@link ListVersionsRequest}
@@ -689,8 +683,7 @@ export class API extends ParentAPI {
689683
)
690684

691685
/**
692-
* Get details about a specific version. Get a specific Kubernetes version and
693-
* the details about the version.
686+
* Get a Version. Retrieve a specific Kubernetes version and its details.
694687
*
695688
* @param request - The request {@link GetVersionRequest}
696689
* @returns A Promise of Version

0 commit comments

Comments
 (0)