Skip to content

[Update] POST /lke/clusters and PUT /lke/cluster/{clusterId} #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 44 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6132,7 +6132,8 @@ paths:
--region us-central \
--version 1.16 \
--node_pools.type g6-standard-4 --node_pools.count 6 \
--node_pools.type g6-standard-8 --node_pools.count 3
--node_pools.type g6-standard-8 --node_pools.count 3 \
--tags ecomm
/lke/clusters/{clusterId}:
parameters:
- name: clusterId
Expand Down Expand Up @@ -6207,26 +6208,66 @@ paths:
properties:
label:
$ref: '#/components/schemas/LKEClusterRequestBody/properties/label'
tags:
type: array
items:
type: string
example:
- prod
- monitoring
- ecomm
- blog
description: >
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
To delete a tag, exclude it from your `tags` array.
responses:
'200':
description: Returns a single Kubernetes cluster.
content:
application/json:
schema:
$ref: '#/components/schemas/LKECluster'
properties:
label:
$ref: '#/components/schemas/LKECluster/properties/label'
tags:
x-linode-filterable: true
type: array
items:
type: string
example:
- prod
- monitoring
- ecomm
- blog
description: >
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
To delete a tag, exclude it from your `tags` array.
created:
$ref: '#/components/schemas/LKECluster/properties/created'
updated:
$ref: '#/components/schemas/LKECluster/properties/updated'
region:
$ref: '#/components/schemas/LKECluster/properties/region'
version:
$ref: '#/components/schemas/LKECluster/properties/version'
x-code-samples:
- lang: Shell
source: >
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"label": "lkecluster54321"
"tags" : ["ecomm", "blog", "prod", "monitoring"]
}' \
https://api.linode.com/v4beta/lke/clusters/12345
- lang: CLI
source: >
linode-cli lke cluster-update 12345 \
--label lkecluster54321
--label lkecluster54321 \
--tags ecomm \
--tags blog \
--tags prod \
--tags monitoring
delete:
operationId: deleteLKECluster
x-linode-cli-action: cluster-delete
Expand Down Expand Up @@ -15708,7 +15749,6 @@ components:
x-linode-filterable: true
example: "1.16"
tags:
x-linode-filterable: true
example:
- ecomm
- blogs
Expand Down