Open
Description
Currently we can only pass 1 group as an organization, this works great for github but not for gitlab.
In gitlab repositories/projects are under groups, which means if you have repositories across multiple groups it's not possible to add a webhook to those repositories.
Below is an example of the values.yaml
with 1 project.
piper:
gitProvider:
name: gitlab
# Map of organization configurations.
organization:
# -- Name of your Git Organization (GitHub) / Workspace (Bitbucket) or Group (Gitlab)
name: "private/k8s"
# Map of webhook configurations.
webhook:
# -- (Github/Gitlab) Used of orgLevel=false, to configure webhook for each of the repos provided.
repoList: ["some-repo"]
Some possible solutions below:
- You could have a
repoList
with the full path to the repo for example:
webhook:
# -- (Github/Gitlab) Used of orgLevel=false, to configure webhook for each of the repos provided.
repoList: ["private/k8s/some-repo", "private/k8s/some-repo"]
- You could create another property called
groups
piper:
gitProvider:
name: gitlab
# Map of organization configurations.
groups: ["private/k8s", "some-other-project"]
- You could create specific properties based on the git provider.
piper:
gitProvider:
gitlab:
# Map of organization configurations.
groups: ["private/k8s", "some-other-project"]
github:
organization: "some-organization"
bitbucket:
some-prop: "some-value"
The latter would be the most flexible one.
EDIT: fixed gitlab naming of groups
Metadata
Metadata
Assignees
Labels
No labels