fluxcd / source-controller

The GitOps Toolkit source management component
https://fluxcd.io
Apache License 2.0
238 stars 187 forks source link

Feature: autodiscovery for repositories of gitlab group #528

Open dwerder opened 2 years ago

dwerder commented 2 years ago

We want to sync all git repositories within a gitlab group/subgroup. The source-controller should do some kind of autodiscovery of all repos in the gitlab group path.

Use-case scenario:

dwerder commented 2 years ago

/cc @haarchri

kingdonb commented 2 years ago

From a design perspective, this inquiry makes me grumble, but I acknowledge the value of centralizing config for an org.

We're talking about ways that this could be implemented which would not be magical or against the core principles of GitOps. You would need an object that describes the org itself, which could impute values for downstream GitRepos and generate them, almost like a GitLabOrganization Controller for Flux?

We don't have anything like this on the roadmap now, but if you're interested in building something like this, we have a fair amount of documentation about how to build your own controllers on top of the GitOps Toolkit:

https://fluxcd.io/docs/gitops-toolkit/source-watcher/