Skip to content

Commit bf518ef

Browse files
committed
patch - to be removed
Signed-off-by: Roy Golan <[email protected]>
1 parent eb1b634 commit bf518ef

File tree

6 files changed

+29
-3
lines changed

6 files changed

+29
-3
lines changed

app-config.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ backend:
1818
# Uncomment the following host directive to bind to specific interfaces
1919
# host: 127.0.0.1
2020
csp:
21-
connect-src: ["'self'", 'http:', 'https:']
21+
frame-ancestors: ['http://localhost:3000', 'http://localhost:7007']
22+
script-src: ["'self'", "'unsafe-inline'", "'unsafe-eval'"]
23+
script-src-elem: ["'self'", "'unsafe-inline'", "'unsafe-eval'"]
24+
connect-src: ["'self'", 'http:', 'https:', 'data:']
2225
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
2326
# Default Helmet Content-Security-Policy values can be removed by setting the key to false
2427
cors:
@@ -80,3 +83,13 @@ catalog:
8083

8184
dynamicPlugins:
8285
frontend: {}
86+
orchestrator:
87+
sonataFlowService:
88+
baseUrl: http://localhost
89+
port: 8899
90+
autoStart: true
91+
workflowsSource:
92+
gitRepositoryUrl: https://github.com/parodos-dev/backstage-orchestrator-workflows
93+
localPath: /tmp/orchestrator/repository
94+
dataIndexService:
95+
url: http://localhost:8899

packages/app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"react-dom": "^18.0.0",
5454
"react-router": "^6.23.0",
5555
"react-router-dom": "^6.23.0",
56-
"tss-react": "^4.9.10"
56+
"tss-react": "^4.9.10",
57+
"@janus-idp/backstage-plugin-orchestrator": "*"
5758
},
5859
"devDependencies": {
5960
"@backstage/cli": "0.26.11",

packages/app/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import { UserSettingsPage } from '@backstage/plugin-user-settings';
3434

3535
import { getThemes } from '@redhat-developer/red-hat-developer-hub-theme';
3636

37+
import { OrchestratorPage } from '@janus-idp/backstage-plugin-orchestrator';
38+
3739
import { apis } from './apis';
3840
import { entityPage } from './components/catalog/EntityPage';
3941
import { Root } from './components/Root';
@@ -85,6 +87,7 @@ const routes = (
8587
</Route>
8688
<Route path="/create" element={<ScaffolderPage />} />
8789
<Route path="/api-docs" element={<ApiExplorerPage />} />
90+
<Route path="/orchestrator" element={<OrchestratorPage />} />
8891
<Route
8992
path="/catalog-import"
9093
element={

packages/app/src/components/Root/Root.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import GroupIcon from '@mui/icons-material/People';
2727
import SearchIcon from '@mui/icons-material/Search';
2828
import { makeStyles } from 'tss-react/mui';
2929

30+
import { OrchestratorIcon } from '@janus-idp/backstage-plugin-orchestrator';
31+
3032
import LogoFull from './LogoFull';
3133
import LogoIcon from './LogoIcon';
3234

@@ -99,6 +101,11 @@ export const Root = ({
99101
<SidebarDivider />
100102
<SidebarScrollWrapper>
101103
{/* Items in this group will be scrollable if they run out of space */}
104+
<SidebarItem
105+
icon={OrchestratorIcon as IconComponent}
106+
to="orchestrator"
107+
text="Orchestrator"
108+
/>
102109
</SidebarScrollWrapper>
103110
</SidebarGroup>
104111
<SidebarSpace />

packages/backend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"@janus-idp/backstage-plugin-rbac-backend": "*",
3939
"@manypkg/get-packages": "^1.1.3",
4040
"app": "*",
41-
"winston": "^3.11.0"
41+
"winston": "^3.11.0",
42+
"@janus-idp/backstage-plugin-orchestrator-backend": "*"
4243
},
4344
"devDependencies": {
4445
"@backstage/cli": "0.26.11"

packages/backend/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ backend.add(
4545

4646
// permission plugin
4747
backend.add(import('@janus-idp/backstage-plugin-rbac-backend'));
48+
backend.add(import('@janus-idp/backstage-plugin-orchestrator-backend/alpha'));
4849

4950
// search plugin
5051
backend.add(import('@backstage/plugin-search-backend/alpha'));

0 commit comments

Comments
 (0)