forked from janus-idp/backstage-showcase
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
dynamic-plugins-info
backend plugin (janus-idp#638)
* feat: add the `dynamic-plugins-info` backend plugin * chore(deps): update yarn.lock * chore: fix tsc error * chore(dynamic-plugins-info-backend): update endpoint name * chore: attempt to disable sonarcloud scan for mock data * chore: remove unnecessary dependencies * Update plugins/dynamic-plugins-info-backend/README.md Co-authored-by: Tomas Kral <tomas.kral@gmail.com> * docs(dynamic-plugin-info-backend): update endpoint documentation * chore: update yarn.lock --------- Co-authored-by: Tomas Kral <tkral@redhat.com> Co-authored-by: Tomas Kral <tomas.kral@gmail.com>
- Loading branch information
1 parent
8811125
commit facc61b
Showing
15 changed files
with
439 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@internal/plugin-dynamic-plugins-info-backend': patch | ||
'backend': patch | ||
--- | ||
|
||
Adds a 'dynamic-plugins-info' backend plugin | ||
|
||
This plugin depends on the `backend-plugin-manager` and lists all the dynamic plugins installed in the dynamic plugins root folder. |
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
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 @@ | ||
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname); |
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,12 @@ | ||
# dynamic-plugins-info | ||
|
||
Welcome to the dynamic-plugins-info backend plugin! | ||
|
||
This plugin depends on the `backend-plugin-manager` and lists all the dynamic plugins installed in the dynamic plugins root folder. | ||
|
||
## Getting started | ||
|
||
This plugin has been added to the backend app in this repository, meaning you'll be able to access it by running `yarn | ||
start-backend` in the root directory, and then navigating to [/api/dynamic-plugins-info](http://localhost:7007/api/dynamic-plugins-info). | ||
|
||
To view the list of installed dynamic plugins, navigate to `http://localhost:7007/api/dynamic-plugins-info/loaded-plugins` |
163 changes: 163 additions & 0 deletions
163
plugins/dynamic-plugins-info-backend/__fixtures__/data.ts
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,163 @@ | ||
// BEGIN-NOSCAN | ||
export const plugins = [ | ||
{ | ||
name: 'backstage-plugin-aap-backend-wrapped-dynamic', | ||
version: '1.2.2-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
}, | ||
}, | ||
{ | ||
name: 'backstage-plugin-argo-cd-backend-wrapped-dynamic', | ||
version: '2.11.3-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'argocd', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'backstage-plugin-gitlab-backend-wrapped-dynamic', | ||
version: '6.2.0-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'gitlab', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'backstage-plugin-keycloak-backend-wrapped-dynamic', | ||
version: '1.5.5-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
}, | ||
}, | ||
{ | ||
name: 'backstage-plugin-ocm-backend-wrapped-dynamic', | ||
version: '3.2.2-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'ocm', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-azure-devops-backend-wrapped-dynamic', | ||
version: '0.4.2-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'azure-devops', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-catalog-backend-module-github-wrapped-dynamic', | ||
version: '0.4.3-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-catalog-backend-module-gitlab-wrapped-dynamic', | ||
version: '0.3.2-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-jenkins-backend-wrapped-dynamic', | ||
version: '0.2.8-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'jenkins', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-kubernetes-backend-wrapped-dynamic', | ||
version: '0.12.2-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'kubernetes', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-scaffolder-backend-module-gitlab-wrapped-dynamic', | ||
version: '0.2.8-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-sonarqube-backend-wrapped-dynamic', | ||
version: '0.2.7-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'sonarqube', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'plugin-techdocs-backend-wrapped-dynamic', | ||
version: '1.7.2-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin', | ||
installer: { | ||
kind: 'legacy', | ||
router: { | ||
pluginID: 'techdocs', | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'scaffolder-backend-argocd-wrapped-dynamic', | ||
version: '1.1.17-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
}, | ||
}, | ||
{ | ||
name: 'scaffolder-backend-module-utils-wrapped-dynamic', | ||
version: '1.10.4-dynamic.0', | ||
platform: 'node', | ||
role: 'backend-plugin-module', | ||
installer: { | ||
kind: 'legacy', | ||
}, | ||
}, | ||
]; | ||
// END-NOSCAN |
Oops, something went wrong.