Replace EntityClient with CatalogClient

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Johan Haals
2021-02-16 11:23:06 +01:00
parent 0b7cb92258
commit 17d1d909e4
6 changed files with 9 additions and 22 deletions
@@ -89,7 +89,6 @@ import {
Publishers,
CreateReactAppTemplater,
Templaters,
CatalogEntityClient,
} from '@backstage/plugin-scaffolder-backend';
import { SingleHostDiscovery } from '@backstage/backend-common';
import type { PluginEnvironment } from '../types';
@@ -114,7 +113,6 @@ export default async function createPlugin({
const dockerClient = new Docker();
const discovery = SingleHostDiscovery.fromConfig(config);
const entityClient = new CatalogEntityClient({ discovery });
const catalogClient = new CatalogClient({ discoveryApi: discovery });
return await createRouter({
@@ -124,7 +122,6 @@ export default async function createPlugin({
logger,
config,
dockerClient,
entityClient,
database,
catalogClient,
});