Skip to content

Commit 436ecc3

Browse files
author
hzoppetti
committed
removed the need for lkeclusterrequestbody object
1 parent 7a6ec79 commit 436ecc3

File tree

1 file changed

+47
-19
lines changed

1 file changed

+47
-19
lines changed

openapi.yaml

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6194,7 +6194,8 @@ paths:
61946194
data:
61956195
type: array
61966196
items:
6197-
$ref: '#/components/schemas/LKECluster'
6197+
type: object
6198+
$ref: '#/components/schemas/LKECluster'
61986199
page:
61996200
$ref: '#/components/schemas/PaginationEnvelope/properties/page'
62006201
pages:
@@ -6241,13 +6242,19 @@ paths:
62416242
- region
62426243
- k8s_version
62436244
- node_pools
6244-
allOf:
6245-
- $ref: '#/components/schemas/LKEClusterRequestBody'
6246-
- properties:
6247-
node_pools:
6248-
type: array
6249-
items:
6250-
$ref: '#/components/schemas/LKENodePoolRequestBody'
6245+
properties:
6246+
label:
6247+
$ref: '#/components/schemas/LKECluster/properties/label'
6248+
region:
6249+
$ref: '#/components/schemas/LKECluster/properties/region'
6250+
k8s_version:
6251+
$ref: '#/components/schemas/LKECluster/properties/k8s_version'
6252+
tags:
6253+
$ref: '#/components/schemas/LKECluster/properties/tags'
6254+
node_pools:
6255+
type: array
6256+
items:
6257+
$ref: '#/components/schemas/LKENodePoolRequestBody'
62516258
responses:
62526259
'200':
62536260
description: Kubernetes cluster creation has started.
@@ -6339,7 +6346,7 @@ paths:
63396346
schema:
63406347
properties:
63416348
label:
6342-
$ref: '#/components/schemas/LKEClusterRequestBody/properties/label'
6349+
$ref: '#/components/schemas/LKECluster/properties/label'
63436350
tags:
63446351
type: array
63456352
items:
@@ -6362,7 +6369,6 @@ paths:
63626369
label:
63636370
$ref: '#/components/schemas/LKECluster/properties/label'
63646371
tags:
6365-
x-linode-filterable: true
63666372
type: array
63676373
items:
63686374
type: string
@@ -6802,7 +6808,8 @@ paths:
68026808
data:
68036809
type: array
68046810
items:
6805-
$ref: '#/components/schemas/LKEVersion'
6811+
type: object
6812+
$ref: '#/components/schemas/LKEVersion'
68066813
page:
68076814
$ref: '#/components/schemas/PaginationEnvelope/properties/page'
68086815
pages:
@@ -15967,10 +15974,7 @@ components:
1596715974
- k8s_version
1596815975
LKECluster:
1596915976
type: object
15970-
# Note that LKECluster inherits all properties of
15971-
# LKEClusterRequestBody and then overrides some of the sub-properties
15972-
allOf:
15973-
- $ref: '#/components/schemas/LKEClusterRequestBody'
15977+
description: A Kubernetes cluster.
1597415978
properties:
1597515979
id:
1597615980
type: integer
@@ -15990,19 +15994,43 @@ components:
1599015994
description: When this Kubernetes cluster was updated.
1599115995
example: "2019-09-13T21:24:16Z"
1599215996
readOnly: true
15993-
# Note that these properties override some of the sub-properties from
15994-
# LKEClusterRequestBody but otherwise inherit all of the original
15995-
# sub-properties.
1599615997
label:
15998+
type: string
15999+
description: >
16000+
This Kubernetes cluster's unique label for display purposes only.
16001+
16002+
Labels have the following constraints:
16003+
16004+
* Must start with an alpha character
16005+
* Must only consist of alphanumeric characters and dashes (`-`)
16006+
* Must not contain two dashes in a row
16007+
minLength: 3
16008+
maxLength: 32
16009+
# Kubernetes does NOT allow underscores in resource names and we are
16010+
# passing this name to Kubernetes. Thus the following pattern:
16011+
pattern: '[a-zA-Z0-9-]{3, 32}'
1599716012
x-linode-cli-display: 2
1599816013
example: lkecluster12345
1599916014
region:
16000-
readOnly: true
16015+
type: string
16016+
description: This Kubernetes cluster's location.
1600116017
x-linode-cli-display: 3
1600216018
example: us-central
16019+
readOnly: true
1600316020
k8s_version:
16021+
type: string
16022+
description: >
16023+
The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>,
16024+
and the latest supported patch version will be deployed.
1600416025
example: "1.16"
1600516026
tags:
16027+
x-linode-filterable: true
16028+
type: array
16029+
description: >
16030+
An array of tags applied to the Kubernetes cluster.
16031+
Tags are for organizational purposes only.
16032+
items:
16033+
type: string
1600616034
example:
1600716035
- ecomm
1600816036
- blogs

0 commit comments

Comments
 (0)