Skip to content

Commit ed639fa

Browse files
committed
CONSOLE-4821: Migrate gitops to dynamic
1 parent 2f4e6a3 commit ed639fa

File tree

4 files changed

+34
-51
lines changed

4 files changed

+34
-51
lines changed

frontend/packages/gitops-plugin/console-extensions.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
[
2+
{
3+
"type": "console.flag/model",
4+
"properties": {
5+
"model": {
6+
"group": "pipelines.openshift.io",
7+
"version": "v1alpha1",
8+
"kind": "GitopsService"
9+
},
10+
"flag": "OPENSHIFT_GITOPS"
11+
}
12+
},
13+
{
14+
"type": "console.page/route",
15+
"properties": {
16+
"exact": true,
17+
"path": "/environments",
18+
"component": { "$codeRef": "listPage.default" }
19+
}
20+
},
21+
{
22+
"type": "console.page/route",
23+
"properties": {
24+
"exact": true,
25+
"path": "/environments/:appName",
26+
"component": { "$codeRef": "detailsPage.default" }
27+
}
28+
},
229
{
330
"type": "console.navigation/href",
431
"properties": {

frontend/packages/gitops-plugin/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"test": "yarn --cwd ../.. test packages/gitops-plugin"
1010
},
1111
"consolePlugin": {
12-
"entry": "src/plugin.tsx"
12+
"entry": "src/plugin.ts",
13+
"exposedModules": {
14+
"listPage": "src/components/GitOpsListPage.tsx",
15+
"detailsPage": "src/components/GitOpsDetailsPage.tsx"
16+
}
1317
}
1418
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// See console-extensions.json instead
2+
export default [];

frontend/packages/gitops-plugin/src/plugin.tsx

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

0 commit comments

Comments
 (0)