-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Overview tab is present under Storage section
Signed-off-by: Gowtham Shanmugasundaram <gshanmug@redhat.com>
- Loading branch information
1 parent
c055ca2
commit de3c310
Showing
7 changed files
with
108 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[ | ||
{ | ||
"type": "console.flag/model", | ||
"properties": { | ||
"model": { | ||
"group": "ramendr.openshift.io", | ||
"version": "v1alpha1", | ||
"kind": "DRPolicy" | ||
}, | ||
"flag": "ODR_MODEL" | ||
} | ||
}, | ||
{ | ||
"type": "console.navigation/section", | ||
"properties": { | ||
"id": "mco-data-services", | ||
"perspective": "acm", | ||
"name": "%plugin__odf-plugin~Data Services%", | ||
"insertBefore": "acm-applications" | ||
} | ||
}, | ||
{ | ||
"type": "console.navigation/href", | ||
"properties": { | ||
"id": "mco-data-policies", | ||
"perspective": "acm", | ||
"section": "mco-data-services", | ||
"name": "%plugin__odf-plugin~Data policies%", | ||
"href": "/multicloud/data-services/data-policies" | ||
}, | ||
"flags": { | ||
"required": ["ODR_MODEL"] | ||
} | ||
}, | ||
{ | ||
"type": "console.page/route", | ||
"properties": { | ||
"path": "/multicloud/data-services/data-policies", | ||
"exact": true, | ||
"component": { "$codeRef": "dataPolicies.DataPoliciesList" } | ||
} | ||
}, | ||
{ | ||
"type": "console.page/route", | ||
"properties": { | ||
"path": "/multicloud/data-services/data-policies/ramendr.openshift.io~v1alpha1~DRPolicy/~new", | ||
"exact": true, | ||
"component": { "$codeRef": "createDataPolicy.CreateDRPolicy" } | ||
} | ||
}, | ||
{ | ||
"type": "console.navigation/href", | ||
"properties": { | ||
"id": "mcodashboard", | ||
"perspective": "acm", | ||
"insertAfter": "mco-data-policies", | ||
"section": "mco-data-services", | ||
"name": "%plugin__odf-plugin~Storage System%", | ||
"href": "/multicloud/data-services/storagesystem" | ||
} | ||
}, | ||
{ | ||
"type": "console.page/route", | ||
"properties": { | ||
"path": "/multicloud/data-services/storagesystem", | ||
"exact": false, | ||
"component": { "$codeRef": "mcoDashboard.default" } | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "odf-multicluster-console", | ||
"version": "0.0.0", | ||
"displayName": "ODF MCO(ODF Multicluster Orchestrator) Plugin", | ||
"description": "Console plugin for ODF MCO", | ||
"dependencies": { | ||
"@console/pluginAPI": "*" | ||
}, | ||
"exposedModules": { | ||
"dataPolicies": "@odf/mco/components/data-policies/data-policies-list", | ||
"createDataPolicy": "@odf/mco/components/data-policies/create-dr-policy/create-dr-policy", | ||
"mcoDashboard": "@odf/mco/components/mco-dashboard/dashboard" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const fs = require('fs'); | ||
|
||
const plugin = process.argv[2]; | ||
const frontendPackage = JSON.parse(fs.readFileSync('./package.json')); | ||
frontendPackage.consolePlugin = JSON.parse( | ||
fs.readFileSync(`./plugins/${plugin}/console-plugin.json`) | ||
); | ||
fs.writeFileSync('./package.json', JSON.stringify(frontendPackage)); | ||
|
||
const consoleExtensions = JSON.parse( | ||
fs.readFileSync(`./plugins/${plugin}/console-extensions.json`) | ||
); | ||
fs.writeFileSync( | ||
'./console-extensions.json', | ||
JSON.stringify(consoleExtensions) | ||
); |