From 7af0ce7956845885c849d733a574e293bad194fe Mon Sep 17 00:00:00 2001 From: Ryan Lonergan Date: Wed, 27 Apr 2022 14:02:36 -0400 Subject: [PATCH 1/2] added autoscaler to the Node Pool Update request body schema --- openapi.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index cd4457b97..ba9d25faf 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -9051,6 +9051,8 @@ paths: properties: count: $ref: '#/components/schemas/LKENodePoolRequestBody/properties/count' + autoscaler: + $ref: '#/components/schemas/LKENodePoolRequestBody/properties/autoscaler' responses: '200': description: Node Pool was successfully modified. From 23c6a15c6ab968c9ce2be3755c4ff8fef5d9da9c Mon Sep 17 00:00:00 2001 From: rsyracuse Date: Wed, 27 Apr 2022 17:46:51 -0400 Subject: [PATCH 2/2] update-samples --- openapi.yaml | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index ba9d25faf..5bd702b79 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -8597,7 +8597,7 @@ paths: -X POST -d '{ "label": "cluster12345", "region": "us-central", - "k8s_version": "1.21", + "k8s_version": "1.23", "tags": ["ecomm", "blogs"], "control_plane": { "high_availability": true @@ -8624,9 +8624,13 @@ paths: linode-cli lke cluster-create \ --label cluster12345 \ --region us-central \ - --k8s_version 1.21 \ + --k8s_version 1.23 \ + --control_plane.high_availability true \ --node_pools.type g6-standard-4 --node_pools.count 6 \ --node_pools.type g6-standard-8 --node_pools.count 3 \ + --node_pools.autoscaler.enabled true \ + --node_pools.autoscaler.max 12 \ + --node_pools.autoscaler.min 3 \ --tags ecomm /lke/clusters/{clusterId}: parameters: @@ -8779,6 +8783,8 @@ paths: source: > linode-cli lke cluster-update 12345 \ --label lkecluster54321 \ + --control_plane.high_availability true \ + --k8s_version 1.23 \ --tags ecomm \ --tags blog \ --tags prod \ @@ -8940,7 +8946,10 @@ paths: linode-cli lke pool-create 12345 \ --type g6-standard-4 \ --count 6 \ - --tags example-tag + --tags example-tag \ + --autoscaler.enabled true \ + --autoscaler.max 12 \ + --autoscaler.min 3 /lke/clusters/{clusterId}/recycle: parameters: - name: clusterId @@ -9066,13 +9075,20 @@ paths: curl -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -X PUT -d '{ - "count": 6 + "count": 6, + "autoscaler": { + "enabled": true, + "max": 12, + "min": 3 }' \ https://api.linode.com/v4/lke/clusters/12345/pools/456 - lang: CLI source: > linode-cli lke pool-update 12345 456 \ --count 6 \ + --autoscaler.enabled true \ + --autoscaler.max 12 \ + --autoscaler.min 3 delete: operationId: deleteLKENodePool x-linode-cli-action: pool-delete @@ -9584,11 +9600,10 @@ paths: - lang: Shell source: > curl -H "Authorization: Bearer $TOKEN" \ - https://api.linode.com/v4/lke/versions/1.21 + https://api.linode.com/v4/lke/versions/1.23 - lang: CLI source: > - linode-cli lke version-view 1.21 - /longview/clients: + linode-cli lke version-view 1.23 x-linode-cli-command: longview get: x-linode-grant: read_only @@ -21122,7 +21137,7 @@ components: description: > The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. - example: "1.21" + example: "1.23" control_plane: type: object description: > @@ -21323,7 +21338,7 @@ components: A Kubernetes version number available for deployment to a Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version. - example: "1.21" + example: "1.23" LongviewClient: type: object description: >