Skip to content

Commit 953d7ec

Browse files
Merge pull request #476 from bbiggerr/lke-node-pool-tags
[Update] LKE Node Pools - taggable
2 parents 07b1e00 + 60f31bb commit 953d7ec

File tree

1 file changed

+47
-60
lines changed

1 file changed

+47
-60
lines changed

openapi.yaml

Lines changed: 47 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -7606,18 +7606,7 @@ paths:
76067606
content:
76077607
application/json:
76087608
schema:
7609-
type: object
7610-
properties:
7611-
type:
7612-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
7613-
count:
7614-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
7615-
disks:
7616-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
7617-
id:
7618-
$ref: '#/components/schemas/LKENodePool/properties/id'
7619-
nodes:
7620-
$ref: '#/components/schemas/LKENodePool/properties/nodes'
7609+
$ref: '#/components/schemas/LKENodePool'
76217610
default:
76227611
$ref: '#/components/responses/ErrorResponse'
76237612
x-code-samples:
@@ -7627,14 +7616,16 @@ paths:
76277616
-H "Authorization: Bearer $TOKEN" \
76287617
-X POST -d '{
76297618
"type": "g6-standard-4",
7630-
"count": 6
7619+
"count": 6,
7620+
"tags": ["example-tag"]
76317621
}' \
76327622
https://api.linode.com/v4/lke/clusters/12345/pools
76337623
- lang: CLI
76347624
source: >
76357625
linode-cli lke pool-create 12345 \
76367626
--type g6-standard-4 \
7637-
--count 6
7627+
--count 6 \
7628+
--tags example-tag
76387629
/lke/clusters/{clusterId}/recycle:
76397630
parameters:
76407631
- name: clusterId
@@ -7712,18 +7703,7 @@ paths:
77127703
content:
77137704
application/json:
77147705
schema:
7715-
type: object
7716-
properties:
7717-
type:
7718-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
7719-
count:
7720-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
7721-
disks:
7722-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
7723-
id:
7724-
$ref: '#/components/schemas/LKENodePool/properties/id'
7725-
nodes:
7726-
$ref: '#/components/schemas/LKENodePool/properties/nodes'
7706+
$ref: '#/components/schemas/LKENodePool'
77277707
x-code-samples:
77287708
- lang: Shell
77297709
source: >
@@ -7762,18 +7742,7 @@ paths:
77627742
content:
77637743
application/json:
77647744
schema:
7765-
type: object
7766-
properties:
7767-
type:
7768-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/type'
7769-
count:
7770-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
7771-
disks:
7772-
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/disks'
7773-
id:
7774-
$ref: '#/components/schemas/LKENodePool/properties/id'
7775-
nodes:
7776-
$ref: '#/components/schemas/LKENodePool/properties/nodes'
7745+
$ref: '#/components/schemas/LKENodePool'
77777746
x-code-samples:
77787747
- lang: Shell
77797748
source: >
@@ -19028,31 +18997,50 @@ components:
1902818997
cluster.
1902918998
properties:
1903018999
type:
19031-
type: string
19032-
description: A Linode Type for all of the nodes in the Node Pool.
19033-
example: g6-standard-4
19000+
$ref: '#/components/schemas/LKENodePool/properties/type'
1903419001
count:
19035-
type: integer
19036-
description: The number of nodes in the Node Pool.
19037-
minimum: 1
19038-
maximum: 100
19039-
example: 6
19002+
$ref: '#/components/schemas/LKENodePool/properties/count'
1904019003
disks:
1904119004
type: array
1904219005
x-linode-cli-format: json
19043-
description: >
19006+
description: |
1904419007
**Note**: This field should be omitted except for special use cases. The disks specified here are
1904519008
partitions in *addition* to the primary partition and reduce the size of the primary partition,
1904619009
which can lead to stability problems for the Node.
1904719010

19048-
1904919011
This Node Pool's custom disk layout. Each item in this array will create a new disk
1905019012
partition for each node in this Node Pool.
1905119013

1905219014
* The custom disk layout is applied to each node in this Node Pool.
1905319015
* The maximum number of custom disk partitions that can be configured is 7.
1905419016
* Once the requested disk paritions are allocated, the remaining disk space is allocated to the node's boot disk.
1905519017
* A Node Pool's custom disk layout is immutable over the lifetime of the Node Pool.
19018+
items:
19019+
$ref: '#/components/schemas/LKENodePool/properties/disks/items'
19020+
tags:
19021+
$ref: '#/components/schemas/LKENodePool/properties/tags'
19022+
LKENodePool:
19023+
type: object
19024+
description: >
19025+
The set of Node Pools which are members of the Kubernetes cluster.
19026+
Node Pools consist of a Linode type, the number of Linodes to
19027+
deploy of that type, and additional status information.
19028+
properties:
19029+
type:
19030+
type: string
19031+
description: The Linode Type for all of the nodes in the Node Pool.
19032+
example: g6-standard-4
19033+
count:
19034+
type: integer
19035+
description: The number of nodes in the Node Pool.
19036+
minimum: 1
19037+
maximum: 100
19038+
example: 6
19039+
disks:
19040+
type: array
19041+
x-linode-cli-format: json
19042+
description: |
19043+
This Node Pool's custom disk layout.
1905619044
items:
1905719045
type: object
1905819046
description: >
@@ -19073,18 +19061,6 @@ components:
1907319061
- raw
1907419062
- ext4
1907519063
example: ext-4
19076-
LKENodePool:
19077-
# Note that LKENodePool inherits all properties of
19078-
# LKENodePoolRequestBody and then overrides some of the sub-properties
19079-
type: object
19080-
allOf:
19081-
- $ref: '#/components/schemas/LKENodePoolRequestBody'
19082-
- type: object
19083-
description: >
19084-
The set of Node Pools which are members of the Kubernetes cluster.
19085-
Node Pools consist of a Linode type, the number of Linodes to
19086-
deploy of that type, and additional status information.
19087-
properties:
1908819064
id:
1908919065
type: integer
1909019066
description: >
@@ -19099,6 +19075,17 @@ components:
1909919075
the instance_id will be returned as null.
1910019076
items:
1910119077
$ref: '#/components/schemas/LKENodeStatus'
19078+
tags:
19079+
x-linode-filterable: true
19080+
description: >
19081+
An array of tags applied to this object. Tags are for organizational
19082+
purposes only.
19083+
type: array
19084+
items:
19085+
type: string
19086+
example:
19087+
- example tag
19088+
- another example
1910219089
LKENodeStatus:
1910319090
type: object
1910419091
description: >

0 commit comments

Comments
 (0)