Merge pull request #1890 from spotify/rugvip/static-loc

catalog-backend: add support for static location config + bootstrap location
This commit is contained in:
Fredrik Adelöw
2020-08-12 14:57:05 +02:00
committed by GitHub
8 changed files with 169 additions and 29 deletions
+2 -1
View File
@@ -29,8 +29,9 @@ import { useHotCleanup } from '@backstage/backend-common';
export default async function createPlugin({
logger,
database,
config,
}: PluginEnvironment) {
const locationReader = new LocationReaders(logger);
const locationReader = new LocationReaders({ logger, config });
const db = await DatabaseManager.createDatabase(database, { logger });
const entitiesCatalog = new DatabaseEntitiesCatalog(db);