Skip to content

Commit 2e9378c

Browse files
authored
fix: build (#189)
1 parent 4da09e0 commit 2e9378c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openapi/cluster.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# yaml-language-server: $schema=https://raw.githubusercontent.com/json-schema-org/json-schema-spec/draft-04/schema.json
33
apiName:
44
title: API name
5-
description: Only used for API/UI to show in app.
5+
description: Used by kubecontext. Also used by API/UI to show in app.
66
type: string
77
apiServer:
88
title: API server
@@ -78,7 +78,7 @@ Cluster:
7878
apiServer:
7979
$ref: '#/apiServer'
8080
x-readOnly: true
81-
description: Full url to a kubernetes api server (including https://). Used to generate kube context file.
81+
description: Full url to a kubernetes api server. Used to generate kube context file.
8282
title: API Server
8383
domainSuffix:
8484
$ref: '#/domainSuffix'

src/openapi/settings.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Settings:
4141
x-provider: azure
4242
cluster:
4343
$ref: cluster.yaml#/Cluster
44-
x-externalDocsPath: docs/console/settings#cluster
4544
customer:
4645
title: Customer
4746
description: A customer's settings.

src/otomi-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export default class OtomiStack {
274274
const secretRes = await client.readNamespacedSecret(secretName || '', namespace)
275275
const { body: secret }: { body: k8s.V1Secret } = secretRes
276276
const token = Buffer.from(secret.data?.token || '', 'base64').toString('ascii')
277-
const clusterData = this.getCluster()
277+
const clusterData = this.getSetting('cluster') as Cluster
278278
const cluster = {
279279
name: clusterData.apiName,
280280
server: clusterData.apiServer,

0 commit comments

Comments
 (0)