Skip to content

Commit d892fa2

Browse files
committed
chore(orchestrator): backport all orchestrator commits since release 1.2
1 parent b43da73 commit d892fa2

File tree

157 files changed

+6870
-5340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+6870
-5340
lines changed

plugins/orchestrator-backend/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

plugins/orchestrator-backend/.lintstagedrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

plugins/orchestrator-backend/.prettierignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

plugins/orchestrator-backend/.prettierrc.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

plugins/orchestrator-backend/CHANGELOG.md

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,73 @@
11
### Dependencies
22

3-
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.16.100
3+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.20.0
4+
* **@janus-idp/cli:** upgraded to 1.15.2
5+
6+
### Dependencies
7+
8+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.19.0
9+
10+
### Dependencies
11+
12+
* **@janus-idp/backstage-plugin-audit-log-node:** upgraded to 1.5.1
13+
14+
### Dependencies
15+
16+
* **@janus-idp/cli:** upgraded to 1.15.1
17+
18+
### Dependencies
19+
20+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.18.2
21+
22+
### Dependencies
23+
24+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.18.1
25+
26+
### Dependencies
27+
28+
* **@janus-idp/cli:** upgraded to 1.15.0
29+
30+
### Dependencies
31+
32+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.18.0
33+
34+
### Dependencies
35+
36+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.17.3
37+
38+
### Dependencies
39+
40+
* **@janus-idp/cli:** upgraded to 1.14.0
41+
* **@janus-idp/backstage-plugin-audit-log-node:** upgraded to 1.5.0
42+
* **@janus-idp/backstage-plugin-rbac-common:** upgraded to 1.10.0
43+
44+
### Dependencies
45+
46+
* **@janus-idp/cli:** upgraded to 1.13.2
47+
48+
### Dependencies
49+
50+
* **@janus-idp/backstage-plugin-audit-log-node:** upgraded to 1.4.1
51+
52+
### Dependencies
53+
54+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.17.2
55+
56+
### Dependencies
57+
58+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.17.1
59+
60+
### Dependencies
61+
62+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.17.0
63+
64+
### Dependencies
65+
66+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.16.0
67+
68+
### Dependencies
69+
70+
* **@janus-idp/backstage-plugin-orchestrator-common:** upgraded to 1.15.2
471

572
### Dependencies
673

Lines changed: 5 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,9 @@
1-
import {
2-
createServiceBuilder,
3-
ServerTokenManager,
4-
UrlReader,
5-
} from '@backstage/backend-common';
6-
import { DiscoveryService, LoggerService } from '@backstage/backend-plugin-api';
7-
import { PluginTaskScheduler } from '@backstage/backend-tasks';
8-
import { CatalogApi } from '@backstage/catalog-client';
9-
import { Config } from '@backstage/config';
10-
import { ServerPermissionClient } from '@backstage/plugin-permission-node';
1+
import { createBackend } from '@backstage/backend-defaults';
112

12-
import { Server } from 'http';
3+
import { orchestratorPlugin } from '../src/plugin';
134

14-
import { createRouter } from '../src/routerWrapper';
5+
const backend = createBackend();
156

16-
export interface ServerOptions {
17-
port: number;
18-
enableCors: boolean;
19-
logger: LoggerService;
20-
config: Config;
21-
discovery: DiscoveryService;
22-
catalogApi: CatalogApi;
23-
urlReader: UrlReader;
24-
scheduler: PluginTaskScheduler;
25-
}
7+
backend.add(orchestratorPlugin);
268

27-
export async function startStandaloneServer(
28-
options: ServerOptions,
29-
): Promise<Server> {
30-
const logger = options.logger.child({ service: 'orchestrator-backend' });
31-
logger.debug('Starting application server...');
32-
33-
const permissions = ServerPermissionClient.fromConfig(options.config, {
34-
discovery: options.discovery,
35-
tokenManager: ServerTokenManager.noop(),
36-
});
37-
38-
const router = await createRouter({
39-
logger,
40-
config: options.config,
41-
discovery: options.discovery,
42-
catalogApi: options.catalogApi,
43-
urlReader: options.urlReader,
44-
scheduler: options.scheduler,
45-
permissions: permissions,
46-
});
47-
48-
let service = createServiceBuilder(module)
49-
.setPort(options.port)
50-
.addRouter('/orchestrator', router);
51-
if (options.enableCors) {
52-
service = service.enableCors({ origin: 'http://localhost:3000' });
53-
}
54-
55-
return await service.start().catch(err => {
56-
logger.error(err);
57-
process.exit(1);
58-
});
59-
}
60-
61-
module.hot?.accept();
9+
backend.start();

plugins/orchestrator-backend/dist-dynamic/package.json

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"license": "Apache-2.0",
55
"main": "./dist/index.cjs.js",
66
"types": "src/index.ts",
7-
"private": true,
87
"publishConfig": {
98
"access": "public"
109
},
@@ -23,16 +22,12 @@
2322
"require": "./dist/index.cjs.js",
2423
"default": "./dist/index.cjs.js"
2524
},
26-
"./alpha": {
27-
"require": "./dist/alpha.cjs.js",
28-
"default": "./dist/alpha.cjs.js"
29-
},
3025
"./package.json": "./package.json"
3126
},
3227
"homepage": "https://red.ht/rhdh",
3328
"repository": {
3429
"type": "git",
35-
"url": "git+https://github.com/janus-idp/backstage-plugins.git",
30+
"url": "https://github.com/janus-idp/backstage-plugins",
3631
"directory": "plugins/orchestrator-backend"
3732
},
3833
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
@@ -47,8 +42,7 @@
4742
"files": [
4843
"app-config.janus-idp.yaml",
4944
"dist",
50-
"static",
51-
"alpha"
45+
"static"
5246
],
5347
"scripts": {},
5448
"dependencies": {
@@ -58,6 +52,7 @@
5852
"express": "^4.18.2",
5953
"express-promise-router": "^4.1.1",
6054
"fs-extra": "^10.1.0",
55+
"isomorphic-git": "^1.23.0",
6156
"json-schema": "^0.4.0",
6257
"moment": "^2.29.4",
6358
"openapi-backend": "^5.10.5",
@@ -68,22 +63,16 @@
6863
},
6964
"devDependencies": {},
7065
"peerDependencies": {
71-
"@janus-idp/backstage-plugin-rbac-common": "1.9.0",
72-
"@janus-idp/backstage-plugin-audit-log-node": "1.4.1",
73-
"@backstage/backend-app-api": "^0.8.0",
66+
"@janus-idp/backstage-plugin-audit-log-node": "1.5.1",
67+
"@janus-idp/backstage-plugin-rbac-common": "1.10.0",
7468
"@backstage/backend-common": "^0.23.3",
75-
"@backstage/backend-dynamic-feature-service": "^0.2.15",
69+
"@backstage/backend-defaults": "^0.4.1",
7670
"@backstage/backend-plugin-api": "^0.7.0",
7771
"@backstage/backend-tasks": "^0.5.27",
7872
"@backstage/catalog-client": "^1.6.5",
79-
"@backstage/config": "^1.2.0",
80-
"@backstage/core-plugin-api": "^1.9.3",
8173
"@backstage/errors": "^1.2.4",
8274
"@backstage/integration": "^1.13.0",
83-
"@backstage/plugin-auth-node": "^0.4.17",
8475
"@backstage/plugin-catalog-node": "^1.12.4",
85-
"@backstage/plugin-events-backend": "^0.3.9",
86-
"@backstage/plugin-events-node": "^0.3.8",
8776
"@backstage/plugin-permission-common": "^0.8.0",
8877
"@backstage/plugin-permission-node": "^0.8.0",
8978
"@backstage/plugin-scaffolder-backend": "^1.23.0",

0 commit comments

Comments
 (0)