From 30824042f103aee5ec4cdd2473d375a847ae71cf Mon Sep 17 00:00:00 2001 From: "Ruslan.Nasyrov" Date: Thu, 19 May 2022 11:11:02 +0500 Subject: [PATCH] feat/catalog-backend-module-gitlab: create url location only if file exists (fixes #4) Signed-off-by: Ruslan.Nasyrov --- docs/integrations/gitlab/discovery.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/integrations/gitlab/discovery.md b/docs/integrations/gitlab/discovery.md index 5a5fdb1d92..3715b89920 100644 --- a/docs/integrations/gitlab/discovery.md +++ b/docs/integrations/gitlab/discovery.md @@ -47,9 +47,8 @@ of your backend. ): Promise { const builder = await CatalogBuilder.create(env); + builder.addProcessor( -+ GitLabDiscoveryProcessor.fromConfig(env.config, { -+ logger: env.logger, -+ skipReposWithoutExactFileMatch: false, -+ }) ++ GitLabDiscoveryProcessor.fromConfig(env.config, { logger: env.logger }) + ); ``` + +If you don't want create location object if file with component definition do not exists in project, you can set the `skipReposWithoutExactFileMatch` option. That can reduce count of request to gitlab with 404 status code.