From 3113f7225cb36fdb5f878062868ae0419d1ca196 Mon Sep 17 00:00:00 2001 From: otomi-admin <63190600+ferruhcihan@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:16:23 +0100 Subject: [PATCH] feat: provide default cluster tier settings --- src/openapi/cluster.yaml | 10 ++++++++++ src/openapi/settingsinfo.yaml | 10 ++++++++++ src/otomi-stack.ts | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/openapi/cluster.yaml b/src/openapi/cluster.yaml index 8668f68c2..487b26f73 100644 --- a/src/openapi/cluster.yaml +++ b/src/openapi/cluster.yaml @@ -31,6 +31,16 @@ Cluster: default: otomi provider: $ref: 'definitions.yaml#/provider' + linode: + additionalProperties: false + properties: + tier: + type: string + description: Linode Kubernetes Engine tier (standard LKE or enterprise LKE-E) + default: standard + enum: + - standard + - enterprise defaultStorageClass: title: Default storage class type: string diff --git a/src/openapi/settingsinfo.yaml b/src/openapi/settingsinfo.yaml index e9d8af35f..a926e9735 100644 --- a/src/openapi/settingsinfo.yaml +++ b/src/openapi/settingsinfo.yaml @@ -16,6 +16,16 @@ SettingsInfo: description: URL to the Kubernetes API. Used to generate the KUBECONFIG for download, for direct access to the cluster. provider: $ref: 'definitions.yaml#/provider' + linode: + additionalProperties: false + properties: + tier: + type: string + description: Linode Kubernetes Engine tier (standard LKE or enterprise LKE-E) + default: standard + enum: + - standard + - enterprise dns: properties: zones: diff --git a/src/otomi-stack.ts b/src/otomi-stack.ts index 10917da22..4e6641b29 100644 --- a/src/otomi-stack.ts +++ b/src/otomi-stack.ts @@ -400,7 +400,7 @@ export default class OtomiStack { getSettingsInfo(): SettingsInfo { return { - cluster: pick(this.repoService.getCluster(), ['name', 'domainSuffix', 'apiServer', 'provider']), + cluster: pick(this.repoService.getCluster(), ['name', 'domainSuffix', 'apiServer', 'provider', 'linode']), dns: pick(this.repoService.getDns(), ['zones']), otomi: pick(this.repoService.getOtomi(), ['hasExternalDNS', 'hasExternalIDP', 'isPreInstalled', 'aiEnabled']), smtp: pick(this.repoService.getSmtp(), ['smarthost']),