Fix CatalogClient reference in create-app too
This commit is contained in:
+3
-1
@@ -8,6 +8,7 @@ import {
|
||||
CatalogEntityClient,
|
||||
} from '@backstage/plugin-scaffolder-backend';
|
||||
import { SingleHostDiscovery } from '@backstage/backend-common';
|
||||
import { CatalogClient } from '@backstage/catalog-client';
|
||||
import type { PluginEnvironment } from '../types';
|
||||
import Docker from 'dockerode';
|
||||
|
||||
@@ -28,7 +29,8 @@ 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 });
|
||||
const entityClient = new CatalogEntityClient({ catalogClient });
|
||||
|
||||
return await createRouter({
|
||||
preparers,
|
||||
|
||||
Reference in New Issue
Block a user