Skip to content

Commit ff3c2f8

Browse files
author
Maurice Faber
committed
Merge branch 'master' of github.com:redkubes/otomi-api [ci skip]
2 parents 0ccf644 + 2a7fe7a commit ff3c2f8

File tree

8 files changed

+11
-17
lines changed

8 files changed

+11
-17
lines changed

src/api.authz.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('Admin API tests', () => {
1818
})
1919

2020
describe('Admin /settings/{setting} endpoint tests', () => {
21-
const endpoints = ['alerts', 'azure', 'customer', 'dns', 'kms', 'home', 'oidc', 'otomi', 'policies', 'smtp']
21+
const endpoints = ['alerts', 'azure', 'dns', 'kms', 'home', 'oidc', 'otomi', 'policies', 'smtp']
2222
endpoints.forEach((ep) => {
2323
it(`admin can get /settings/${ep}`, (done) => {
2424
request(app)

src/fixtures/values.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,11 @@ export default {
395395
apiServer: 'apiServer.onprem.example.com',
396396
domainSuffix: 'dev.onprem.example.com',
397397
k8sVersion: '1.19',
398+
owner: 'demo',
398399
name: 'dev',
399400
provider: 'onprem',
400401
region: 'eu-central-1',
401402
},
402-
customer: {
403-
name: 'demo',
404-
},
405403
dns: {
406404
zones: ['some.com', 'onprem.example.com', 'onprem.private.net'],
407405
aws: {

src/openapi/api.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ paths:
517517
- alerts
518518
- azure
519519
- cluster
520-
- customer
521520
- dns
522521
- home
523522
- kms

src/openapi/cluster.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ entrypoint:
1818
type: string
1919
name:
2020
title: Name
21+
description: A cluster name.
22+
type: string
23+
owner:
24+
title: Name
25+
descrption: A cluster owner. Used in alerts/reports to distinguish between resources for different customers.
2126
type: string
2227
provider:
2328
title: Provider
@@ -93,6 +98,9 @@ Cluster:
9398
name:
9499
$ref: '#/name'
95100
x-readOnly: true
101+
owner:
102+
$ref: '#/name'
103+
x-readOnly: true
96104
provider:
97105
$ref: '#/provider'
98106
x-readOnly: true

src/openapi/settings.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,6 @@ Settings:
4949
type: object
5050
cluster:
5151
$ref: cluster.yaml#/Cluster
52-
customer:
53-
title: Customer
54-
description: A customer's settings.
55-
additionalProperties: false
56-
properties:
57-
name:
58-
type: string
59-
title: Name
60-
description: Used in alerts/reports to distinguish between resources for different customers.
6152
dns:
6253
$ref: definitions.yaml#/dns
6354
x-externalDocsPath: docs/console/settings/dns

src/otomi-models.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export type Setting =
1717
| components['schemas']['Settings']['azure']
1818
| components['schemas']['Settings']['cluster']
1919
| components['schemas']['Session']['cluster']
20-
| components['schemas']['Settings']['customer']
2120
| components['schemas']['Settings']['dns']
2221
| components['schemas']['Settings']['home']
2322
| components['schemas']['Settings']['kms']

test/env/cluster.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ cluster:
44
domainSuffix: dev.onprem.example.com
55
k8sVersion: '1.19'
66
name: dev
7+
owner: demo
78
provider: onprem
89
region: eu-central-1

test/env/settings.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ alerts:
88
azure:
99
appgw:
1010
isManaged: true
11-
customer:
12-
name: demo
1311
dns:
1412
zones: [some.com, onprem.example.com, onprem.private.net]
1513
aws:

0 commit comments

Comments
 (0)