Merge pull request #11535 from Bonial-International-GmbH/pjungermann/catalogBuilder

feat: support array as arg for `CatalogBuilder.addEntityProvider` and others
This commit is contained in:
Patrik Oldsberg
2022-05-18 10:53:03 +02:00
committed by GitHub
5 changed files with 49 additions and 14 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ import { AwsS3EntityProvider } from '@backstage/plugin-catalog-backend-module-aw
const builder = await CatalogBuilder.create(env);
/** ... other processors and/or providers ... */
builder.addEntityProvider(
...AwsS3EntityProvider.fromConfig(env.config, {
AwsS3EntityProvider.fromConfig(env.config, {
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { minutes: 30 },
+1 -1
View File
@@ -30,7 +30,7 @@ import { Duration } from 'luxon';
const builder = await CatalogBuilder.create(env);
/** ... other processors and/or providers ... */
builder.addEntityProvider(
...GerritEntityProvider.fromConfig(env.config, {
GerritEntityProvider.fromConfig(env.config, {
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { minutes: 30 },