Skip to content

Conversation

leslitagordita
Copy link
Contributor

  • Add disks field to LKENodePoolRequestBody schema
  • This update affects the following endpoints:
    • POST /lke/clusters
    • POST /lke/clusters/{clusterId}/pools
    • Updated Shell and CLI examples for each endpoint.

This update affects the following endpoints:
POST /lke/clusters
POST /lke/clusters/{clusterId}/pools

Updated Shell and CLI examples for each endpoint.
Copy link

@michaelsaah michaelsaah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to your question; disks is not a convenience field in the sense that its effect can be achieved through other public methods. it's an advanced feature that most users would not find useful, but it does open up some very interesting deployment options, like deploying rook on LKE w/ local storage.

openapi.yaml Outdated
"count": 6,
"disks": [
{
"size": "1028",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1028 should be an int, not a string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

openapi.yaml Outdated
"count": 6,
"disks": [
{
"size": "1028",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

openapi.yaml Outdated
linode-cli lke pool-create 12345 \
--type g6-standard-4 \
--count 6 \
--disks '[{"size": "1028", "type": "ext4"}]'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

openapi.yaml Outdated
- 2048
type:
description: >
This custome disk partition's filesystem type.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

openapi.yaml Outdated
properties:
size:
description: >
The size of this custom disk partition in MB. The size of this disk partition must not exceed the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't bother noting the sum of sizes validation, the API validation errors will make it clear. it's a bit complex to describe accurately, since there's a minimum necessary slice we reserve for the boot disk.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking about this more; it's worth noting somewhere that whatever disk is leftover once the requested disks are allocated is allocated to the boot disk

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added note about boot disk allocation: 347c6a1#diff-fe030a7c1568b3decf599edf399be7f4R16052

@leslitagordita leslitagordita requested review from asauber and sagesyr July 9, 2020 20:51
Copy link
Contributor

@asauber asauber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 Strongly recommend including the point in my comment above

@leslitagordita leslitagordita merged commit 40ff341 into linode:development Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants