Skip to content

Commit ca97ea8

Browse files
authored
Merge pull request #764 from linode/release-4.145.0
Release 4.145.0
2 parents 18d12e3 + 826b067 commit ca97ea8

File tree

1 file changed

+131
-21
lines changed

1 file changed

+131
-21
lines changed

openapi.yaml

Lines changed: 131 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.1
22
info:
3-
version: 4.144.1
3+
version: 4.145.0
44

55
title: Linode API
66
description: |
@@ -6029,7 +6029,7 @@ paths:
60296029
type: string
60306030
pattern: \A(\*\.)?([a-zA-Z0-9-_]{1,63}\.)+([a-zA-Z]{2,3}\.)?([a-zA-Z]{2,16}|xn--[a-zA-Z0-9]+)\Z
60316031
minLength: 1
6032-
maxLength: 255
6032+
maxLength: 253
60336033
description: >
60346034
The new domain for the clone. Domain labels cannot be longer than
60356035
63 characters and must conform to [RFC1035](https://tools.ietf.org/html/rfc1035).
@@ -11071,6 +11071,116 @@ paths:
1107111071
- lang: CLI
1107211072
source: >
1107311073
linode-cli lke kubeconfig-delete 12345
11074+
/lke/clusters/{clusterId}/regenerate:
11075+
parameters:
11076+
- name: clusterId
11077+
in: path
11078+
description: ID of the target Kubernetes cluster.
11079+
required: true
11080+
schema:
11081+
type: integer
11082+
x-linode-cli-command: lke
11083+
post:
11084+
operationId: postLKEClusterRegenerate
11085+
x-linode-cli-action: regenerate
11086+
security:
11087+
- personalAccessToken: []
11088+
- oauth:
11089+
- lke:read_write
11090+
tags:
11091+
- Linode Kubernetes Engine (LKE)
11092+
summary: Kubernetes Cluster Regenerate
11093+
description: |
11094+
Regenerate the Kubeconfig file and/or the service account token for a Cluster.
11095+
11096+
This is a helper command that allows performing both the [Kubeconfig Delete](#kubeconfig-delete) and the [Service Token Delete](#service-token-delete) actions with a single request.
11097+
11098+
When using this command, at least one of `kubeconfig` or `servicetoken` is required.
11099+
11100+
**Note**: When regenerating a service account token, the Cluster's control plane components and Linode CSI drivers are also restarted and configured with the new token. High Availability Clusters should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted.
11101+
requestBody:
11102+
description: The Kubernetes Cluster Regenerate request object.
11103+
content:
11104+
application/json:
11105+
schema:
11106+
properties:
11107+
kubeconfig:
11108+
type: boolean
11109+
default: false
11110+
example: true
11111+
description: |
11112+
Whether to delete and regenerate the Kubeconfig file for this Cluster.
11113+
servicetoken:
11114+
type: boolean
11115+
default: false
11116+
example: true
11117+
description: |
11118+
Whether to delete and regenerate the service access token for this Cluster.
11119+
responses:
11120+
'200':
11121+
description: Regenerate request successful.
11122+
content:
11123+
application/json:
11124+
schema:
11125+
type: object
11126+
default:
11127+
$ref: '#/components/responses/ErrorResponse'
11128+
x-code-samples:
11129+
- lang: Shell
11130+
source: >
11131+
curl -H "Content-Type: application/json" \
11132+
-H "Authorization: Bearer $TOKEN" \
11133+
-X POST -d '{
11134+
"kubeconfig": true;
11135+
"servicetoken": true
11136+
}' \
11137+
https://api.linode.com/v4/lke/clusters/12345/regenerate
11138+
- lang: CLI
11139+
source: >
11140+
linode-cli lke regenerate 12345 \
11141+
--kubeconfig true \
11142+
--servicetoken true
11143+
/lke/clusters/{clusterId}/servicetoken:
11144+
parameters:
11145+
- name: clusterId
11146+
in: path
11147+
description: ID of the target Kubernetes cluster.
11148+
required: true
11149+
schema:
11150+
type: integer
11151+
x-linode-cli-command: lke
11152+
delete:
11153+
operationId: postLKECServiceTokenDelete
11154+
x-linode-cli-action: service-token-delete
11155+
security:
11156+
- personalAccessToken: []
11157+
- oauth:
11158+
- lke:read_write
11159+
tags:
11160+
- Linode Kubernetes Engine (LKE)
11161+
summary: Service Token Delete
11162+
description: |
11163+
Delete and regenerate the service account token for a Cluster.
11164+
11165+
**Note**: When regenerating a service account token, the Cluster's control plane components and Linode CSI drivers are also restarted and configured with the new token. High Availability Clusters should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted.
11166+
responses:
11167+
'200':
11168+
description: Service token deleted and regenerated successfully.
11169+
content:
11170+
application/json:
11171+
schema:
11172+
type: object
11173+
default:
11174+
$ref: '#/components/responses/ErrorResponse'
11175+
x-code-samples:
11176+
- lang: Shell
11177+
source: >
11178+
curl -H "Authorization: Bearer $TOKEN" \
11179+
-X DELETE \
11180+
https://api.linode.com/v4/lke/clusters/12345/servicetoken
11181+
- lang: CLI
11182+
source: >
11183+
linode-cli lke service-token-delete 12345
1107411184
/lke/versions:
1107511185
x-linode-cli-command: lke
1107611186
get:
@@ -16231,23 +16341,23 @@ paths:
1623116341
- lang: Shell
1623216342
source: >
1623316343
curl -H "Content-Type: application/json" \
16234-
-H "Authorization: Bearer $TOKEN" \
16235-
-X POST -d '{
16236-
"label": "my-object-storage-key",
16237-
"bucket_access": [
16238-
{
16239-
"cluster": "ap-south-1",
16240-
"bucket_name": "bucket-example-1",
16241-
"permissions": "read_write"
16242-
},
16243-
{
16244-
"cluster": "us-east-1",
16245-
"bucket_name": "bucket-example-2",
16246-
"permissions": "read_only"
16247-
}
16248-
]
16249-
}' \
16250-
https://api.linode.com/v4/object-storage/keys
16344+
-H "Authorization: Bearer $TOKEN" \
16345+
-X POST -d '{
16346+
"label": "my-object-storage-key",
16347+
"bucket_access": [
16348+
{
16349+
"cluster": "ap-south-1",
16350+
"bucket_name": "bucket-example-1",
16351+
"permissions": "read_write"
16352+
},
16353+
{
16354+
"cluster": "us-east-1",
16355+
"bucket_name": "bucket-example-2",
16356+
"permissions": "read_only"
16357+
}
16358+
]
16359+
}' \
16360+
https://api.linode.com/v4/object-storage/keys
1625116361
- lang: CLI
1625216362
source: >
1625316363
linode-cli object-storage keys-create \
@@ -20803,7 +20913,7 @@ components:
2080320913
type: string
2080420914
pattern: \A(\*\.)?([a-zA-Z0-9-_]{1,63}\.)+([a-zA-Z]{2,3}\.)?([a-zA-Z]{2,16}|xn--[a-zA-Z0-9]+)\Z
2080520915
minLength: 1
20806-
maxLength: 255
20916+
maxLength: 253
2080720917
description: >
2080820918
The domain this Domain represents. Domain labels cannot be longer than
2080920919
63 characters and must conform to [RFC1035](https://tools.ietf.org/html/rfc1035).
@@ -20840,7 +20950,7 @@ components:
2084020950
description:
2084120951
type: string
2084220952
minLength: 1
20843-
maxLength: 255
20953+
maxLength: 253
2084420954
description: |
2084520955
A description for this Domain. This is for display purposes only.
2084620956
example: null

0 commit comments

Comments
 (0)