Merge pull request #16468 from matteosilv/master

Filter GitLab groups by prefix in GitlabOrgDiscoveryEntityProvider
This commit is contained in:
Patrik Oldsberg
2023-03-07 13:13:55 +01:00
committed by GitHub
4 changed files with 45 additions and 12 deletions
+6
View File
@@ -31,4 +31,10 @@ catalog:
yourProviderId:
host: gitlab.com
orgEnabled: true
group: org/teams # Optional. Must not end with slash. Accepts only groups under the provided path (which will be stripped)
groupPattern: '[\s\S]*' # Optional. Filters found groups based on provided pattern. Defaults to `[\s\S]*`, which means to not filter anything
```
When the `group` parameter is provided, the corresponding path prefix will be stripped out from each matching group
when computing the unique entity name. e.g. If `group` is `org/teams`, the name for `org/teams/avengers/gotg` will
be `avengers-gotg`.