Skip to content

[Update] LKE Endpoints Improvements #287

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 6 commits into from
Jul 13, 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
94 changes: 38 additions & 56 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6241,13 +6241,19 @@ paths:
- region
- k8s_version
- node_pools
allOf:
- $ref: '#/components/schemas/LKEClusterRequestBody'
- properties:
node_pools:
type: array
items:
$ref: '#/components/schemas/LKENodePoolRequestBody'
properties:
label:
$ref: '#/components/schemas/LKECluster/properties/label'
region:
$ref: '#/components/schemas/LKECluster/properties/region'
k8s_version:
$ref: '#/components/schemas/LKECluster/properties/k8s_version'
tags:
$ref: '#/components/schemas/LKECluster/properties/tags'
node_pools:
type: array
items:
$ref: '#/components/schemas/LKENodePoolRequestBody'
responses:
'200':
description: Kubernetes cluster creation has started.
Expand Down Expand Up @@ -6339,7 +6345,7 @@ paths:
schema:
properties:
label:
$ref: '#/components/schemas/LKEClusterRequestBody/properties/label'
$ref: '#/components/schemas/LKECluster/properties/label'
tags:
type: array
items:
Expand All @@ -6362,7 +6368,6 @@ paths:
label:
$ref: '#/components/schemas/LKECluster/properties/label'
tags:
x-linode-filterable: true
type: array
items:
type: string
Expand Down Expand Up @@ -15922,10 +15927,28 @@ components:
The number of GPUs this Linode Type offers.
example: 0
x-linode-cli-display: 11
LKEClusterRequestBody:
LKECluster:
type: object
description: A Kubernetes cluster.
properties:
id:
type: integer
description: This Kubernetes cluster's unique ID.
readOnly: true
x-linode-cli-display: 1
example: 1234
created:
type: string
format: date-time
description: When this Kubernetes cluster was created.
example: "2019-09-12T21:25:30Z"
readOnly: true
updated:
type: string
format: date-time
description: When this Kubernetes cluster was updated.
example: "2019-09-13T21:24:16Z"
readOnly: true
label:
type: string
description: >
Expand All @@ -15941,10 +15964,12 @@ components:
# Kubernetes does NOT allow underscores in resource names and we are
# passing this name to Kubernetes. Thus the following pattern:
pattern: '[a-zA-Z0-9-]{3, 32}'
x-linode-cli-display: 2
example: lkecluster12345
region:
type: string
description: This Kubernetes cluster's location.
x-linode-cli-display: 3
example: us-central
k8s_version:
type: string
Expand All @@ -15953,59 +15978,16 @@ components:
and the latest supported patch version will be deployed.
example: "1.16"
tags:
x-linode-filterable: true
type: array
description: >
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
An array of tags applied to the Kubernetes cluster.
Tags are for organizational purposes only.
items:
type: string
example:
- ecomm
- blogs
required:
- label
- region
- k8s_version
LKECluster:
type: object
# Note that LKECluster inherits all properties of
# LKEClusterRequestBody and then overrides some of the sub-properties
allOf:
- $ref: '#/components/schemas/LKEClusterRequestBody'
properties:
id:
type: integer
description: This Kubernetes cluster's unique ID.
readOnly: true
x-linode-cli-display: 1
example: 1234
created:
type: string
format: date-time
description: When this Kubernetes cluster was created.
example: "2019-09-12T21:25:30Z"
readOnly: true
updated:
type: string
format: date-time
description: When this Kubernetes cluster was updated.
example: "2019-09-13T21:24:16Z"
readOnly: true
# Note that these properties override some of the sub-properties from
# LKEClusterRequestBody but otherwise inherit all of the original
# sub-properties.
label:
x-linode-cli-display: 2
example: lkecluster12345
region:
readOnly: true
x-linode-cli-display: 3
example: us-central
k8s_version:
example: "1.16"
tags:
example:
- ecomm
- blogs
LKENodePoolRequestBody:
type: object
description: >
Expand Down