Skip to content

Commit b84ef3a

Browse files
feat: provide default cluster tier settings (#839)
Co-authored-by: svcAPLBot <[email protected]>
1 parent 4b1a270 commit b84ef3a

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

src/openapi/cluster.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ Cluster:
3131
default: otomi
3232
provider:
3333
$ref: 'definitions.yaml#/provider'
34+
linode:
35+
additionalProperties: false
36+
properties:
37+
tier:
38+
type: string
39+
description: Linode Kubernetes Engine tier (standard LKE or enterprise LKE-E)
40+
default: standard
41+
enum:
42+
- standard
43+
- enterprise
3444
defaultStorageClass:
3545
title: Default storage class
3646
type: string

src/openapi/settingsinfo.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ SettingsInfo:
1616
description: URL to the Kubernetes API. Used to generate the KUBECONFIG for download, for direct access to the cluster.
1717
provider:
1818
$ref: 'definitions.yaml#/provider'
19+
linode:
20+
additionalProperties: false
21+
properties:
22+
tier:
23+
type: string
24+
description: Linode Kubernetes Engine tier (standard LKE or enterprise LKE-E)
25+
default: standard
26+
enum:
27+
- standard
28+
- enterprise
1929
dns:
2030
properties:
2131
zones:

src/otomi-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ export default class OtomiStack {
400400

401401
getSettingsInfo(): SettingsInfo {
402402
return {
403-
cluster: pick(this.repoService.getCluster(), ['name', 'domainSuffix', 'apiServer', 'provider']),
403+
cluster: pick(this.repoService.getCluster(), ['name', 'domainSuffix', 'apiServer', 'provider', 'linode']),
404404
dns: pick(this.repoService.getDns(), ['zones']),
405405
otomi: pick(this.repoService.getOtomi(), ['hasExternalDNS', 'hasExternalIDP', 'isPreInstalled', 'aiEnabled']),
406406
smtp: pick(this.repoService.getSmtp(), ['smarthost']),

0 commit comments

Comments
 (0)