entity page UI and workflow fix
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/backend-common": "^0.21.7",
|
||||
"@backstage/backend-defaults": "^0.2.17",
|
||||
"@backstage/backend-plugin-api": "^0.6.17",
|
||||
"@backstage/backend-defaults": "^0.2.18",
|
||||
"@backstage/backend-plugin-api": "^0.6.18",
|
||||
"@backstage/backend-tasks": "^0.5.22",
|
||||
"@backstage/config": "^1.2.0",
|
||||
"@backstage/integration": "^1.10.0",
|
||||
@@ -51,6 +51,7 @@
|
||||
"@muvaf/create-argocd-application": "^0.4.1",
|
||||
"@muvaf/kubernetes-apply": "^0.1.0",
|
||||
"@roadiehq/scaffolder-backend-argocd": "^1.1.26",
|
||||
"@rsc-labs/backstage-changelog-plugin-backend": "^0.3.1",
|
||||
"app": "link:../app",
|
||||
"better-sqlite3": "^9.0.0",
|
||||
"dockerode": "^3.3.1",
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
* Happy hacking!
|
||||
*/
|
||||
|
||||
import { createBackend } from '@backstage/backend-defaults';
|
||||
import { eventsModuleGithubEventRouter } from '@backstage/plugin-events-backend-module-github/alpha';
|
||||
import { eventsModuleGithubWebhook } from '@backstage/plugin-events-backend-module-github/alpha';
|
||||
import { scaffolderActionsExtensionPoint } from '@backstage/plugin-scaffolder-node/alpha';
|
||||
import {createBackend} from '@backstage/backend-defaults';
|
||||
import {
|
||||
createBackendModule,
|
||||
} from '@backstage/backend-plugin-api';
|
||||
import { createNewFileAction } from './plugins/scaffolder/actions/custom';
|
||||
import { kubernetesApply } from "@muvaf/kubernetes-apply";
|
||||
import { createArgoProjectAction } from './plugins/scaffolder/actions/argo';
|
||||
eventsModuleGithubEventRouter,
|
||||
eventsModuleGithubWebhook
|
||||
} from '@backstage/plugin-events-backend-module-github/alpha';
|
||||
import {scaffolderActionsExtensionPoint} from '@backstage/plugin-scaffolder-node/alpha';
|
||||
import {createBackendModule,} from '@backstage/backend-plugin-api';
|
||||
import {createNewFileAction} from './plugins/scaffolder/actions/custom';
|
||||
import {kubernetesApply} from "@muvaf/kubernetes-apply";
|
||||
import {createArgoProjectAction} from './plugins/scaffolder/actions/argo';
|
||||
|
||||
const backend = createBackend();
|
||||
|
||||
@@ -34,7 +34,7 @@ backend.add(import('@backstage/plugin-auth-backend-module-github-provider'));
|
||||
// catalog plugin
|
||||
backend.add(import('@backstage/plugin-catalog-backend/alpha'));
|
||||
backend.add(
|
||||
import('@backstage/plugin-catalog-backend-module-scaffolder-entity-model'),
|
||||
import('@backstage/plugin-catalog-backend-module-scaffolder-entity-model'),
|
||||
);
|
||||
backend.add(import('@backstage/plugin-scaffolder-backend-module-github'));
|
||||
backend.add(import('@backstage/plugin-catalog-backend-module-github/alpha'));
|
||||
@@ -46,7 +46,7 @@ backend.add(eventsModuleGithubWebhook());
|
||||
// permission plugin
|
||||
backend.add(import('@backstage/plugin-permission-backend/alpha'));
|
||||
backend.add(
|
||||
import('@backstage/plugin-permission-backend-module-allow-all-policy'),
|
||||
import('@backstage/plugin-permission-backend-module-allow-all-policy'),
|
||||
);
|
||||
|
||||
// search plugin
|
||||
@@ -57,23 +57,23 @@ backend.add(import('@backstage/plugin-search-backend/alpha'));
|
||||
backend.add(import('@backstage/plugin-devtools-backend'));
|
||||
|
||||
const scaffolderModuleCustomExtensions = createBackendModule({
|
||||
pluginId: 'scaffolder', // name of the plugin that the module is targeting
|
||||
moduleId: 'custom-extensions',
|
||||
register(env) {
|
||||
env.registerInit({
|
||||
deps: {
|
||||
scaffolder: scaffolderActionsExtensionPoint,
|
||||
// ... and other dependencies as needed
|
||||
},
|
||||
async init({ scaffolder /* ..., other dependencies */ }) {
|
||||
// Here you have the opportunity to interact with the extension
|
||||
// point before the plugin itself gets instantiated
|
||||
scaffolder.addActions(createNewFileAction()); // just an example
|
||||
scaffolder.addActions(createArgoProjectAction()); // just an example
|
||||
scaffolder.addActions(kubernetesApply());
|
||||
},
|
||||
});
|
||||
},
|
||||
pluginId: 'scaffolder', // name of the plugin that the module is targeting
|
||||
moduleId: 'custom-extensions',
|
||||
register(env) {
|
||||
env.registerInit({
|
||||
deps: {
|
||||
scaffolder: scaffolderActionsExtensionPoint,
|
||||
// ... and other dependencies as needed
|
||||
},
|
||||
async init({scaffolder /* ..., other dependencies */}) {
|
||||
// Here you have the opportunity to interact with the extension
|
||||
// point before the plugin itself gets instantiated
|
||||
scaffolder.addActions(createNewFileAction()); // just an example
|
||||
scaffolder.addActions(createArgoProjectAction()); // just an example
|
||||
scaffolder.addActions(kubernetesApply());
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
backend.add(scaffolderModuleCustomExtensions());
|
||||
|
||||
Reference in New Issue
Block a user