Skip to content

Commit 1a8e990

Browse files
authored
Merge pull request #626 from rl0nergan/fix-np-update-autoscale
added autoscaler to the Node Pool Update request body schema
2 parents 231b02c + 23c6a15 commit 1a8e990

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

openapi.yaml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8597,7 +8597,7 @@ paths:
85978597
-X POST -d '{
85988598
"label": "cluster12345",
85998599
"region": "us-central",
8600-
"k8s_version": "1.21",
8600+
"k8s_version": "1.23",
86018601
"tags": ["ecomm", "blogs"],
86028602
"control_plane": {
86038603
"high_availability": true
@@ -8624,9 +8624,13 @@ paths:
86248624
linode-cli lke cluster-create \
86258625
--label cluster12345 \
86268626
--region us-central \
8627-
--k8s_version 1.21 \
8627+
--k8s_version 1.23 \
8628+
--control_plane.high_availability true \
86288629
--node_pools.type g6-standard-4 --node_pools.count 6 \
86298630
--node_pools.type g6-standard-8 --node_pools.count 3 \
8631+
--node_pools.autoscaler.enabled true \
8632+
--node_pools.autoscaler.max 12 \
8633+
--node_pools.autoscaler.min 3 \
86308634
--tags ecomm
86318635
/lke/clusters/{clusterId}:
86328636
parameters:
@@ -8779,6 +8783,8 @@ paths:
87798783
source: >
87808784
linode-cli lke cluster-update 12345 \
87818785
--label lkecluster54321 \
8786+
--control_plane.high_availability true \
8787+
--k8s_version 1.23 \
87828788
--tags ecomm \
87838789
--tags blog \
87848790
--tags prod \
@@ -8940,7 +8946,10 @@ paths:
89408946
linode-cli lke pool-create 12345 \
89418947
--type g6-standard-4 \
89428948
--count 6 \
8943-
--tags example-tag
8949+
--tags example-tag \
8950+
--autoscaler.enabled true \
8951+
--autoscaler.max 12 \
8952+
--autoscaler.min 3
89448953
/lke/clusters/{clusterId}/recycle:
89458954
parameters:
89468955
- name: clusterId
@@ -9051,6 +9060,8 @@ paths:
90519060
properties:
90529061
count:
90539062
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/count'
9063+
autoscaler:
9064+
$ref: '#/components/schemas/LKENodePoolRequestBody/properties/autoscaler'
90549065
responses:
90559066
'200':
90569067
description: Node Pool was successfully modified.
@@ -9064,13 +9075,20 @@ paths:
90649075
curl -H "Content-Type: application/json" \
90659076
-H "Authorization: Bearer $TOKEN" \
90669077
-X PUT -d '{
9067-
"count": 6
9078+
"count": 6,
9079+
"autoscaler": {
9080+
"enabled": true,
9081+
"max": 12,
9082+
"min": 3
90689083
}' \
90699084
https://api.linode.com/v4/lke/clusters/12345/pools/456
90709085
- lang: CLI
90719086
source: >
90729087
linode-cli lke pool-update 12345 456 \
90739088
--count 6 \
9089+
--autoscaler.enabled true \
9090+
--autoscaler.max 12 \
9091+
--autoscaler.min 3
90749092
delete:
90759093
operationId: deleteLKENodePool
90769094
x-linode-cli-action: pool-delete
@@ -9582,11 +9600,10 @@ paths:
95829600
- lang: Shell
95839601
source: >
95849602
curl -H "Authorization: Bearer $TOKEN" \
9585-
https://api.linode.com/v4/lke/versions/1.21
9603+
https://api.linode.com/v4/lke/versions/1.23
95869604
- lang: CLI
95879605
source: >
9588-
linode-cli lke version-view 1.21
9589-
/longview/clients:
9606+
linode-cli lke version-view 1.23
95909607
x-linode-cli-command: longview
95919608
get:
95929609
x-linode-grant: read_only
@@ -21120,7 +21137,7 @@ components:
2112021137
description: >
2112121138
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>,
2112221139
and the latest supported patch version will be deployed.
21123-
example: "1.21"
21140+
example: "1.23"
2112421141
control_plane:
2112521142
type: object
2112621143
description: >
@@ -21321,7 +21338,7 @@ components:
2132121338
A Kubernetes version number available for deployment
2132221339
to a Kubernetes cluster in the format of <major>.<minor>,
2132321340
and the latest supported patch version.
21324-
example: "1.21"
21341+
example: "1.23"
2132521342
LongviewClient:
2132621343
type: object
2132721344
description: >

0 commit comments

Comments
 (0)