Merge pull request #16502 from Andy2003/feature/13587-gitlab-discovery-branch-handling

[GitlabDiscoveryEntityProvider] add config to distinguish between `branch` and `fallbackBranch`
This commit is contained in:
Johan Haals
2023-03-20 14:45:58 +01:00
committed by GitHub
8 changed files with 148 additions and 50 deletions
+1
View File
@@ -21,6 +21,7 @@ catalog:
gitlab:
yourProviderId:
host: gitlab-host # Identifies one of the hosts set up in the integrations
branch: main # Optional. Used to discover on a specific branch
fallbackBranch: main # Optional. Fallback to be used if there is no default branch configured at the Gitlab repository. It is only used, if `branch` is undefined. Uses `master` as default
group: example-group # Optional. Group and subgroup (if needed) to look for repositories. If not present the whole instance will be scanned
entityFilename: catalog-info.yaml # Optional. Defaults to `catalog-info.yaml`