feature: Infrahub creates targets automatically when importing repository #5190
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
state/backlog
This issue is part of the backlog
type/feature
New feature or request
Component
API Server / GraphQL, Git Integration
Describe the Feature Request
There are two folds to this feature:
target
they are about to useIn my mind this could happen in
.infrahub.yml
file but I don't have strong opinion on that. We would basically have a newtargets
section:When we connect the repository to Infrahub, the process needs to create a
group
per target defined in the section, this needs to happen before we create artifacts, generators ...Describe the Use Case
Assuming I start from a blank Infrahub instance and I want to connect a git repository containing my implementation (artifacts, schema ...). At the moment I need to, before connecting my repo, make sure the targets (aka groups) exist, otherwise the repository sync/import will simply fail.
With this feature we would remove this first step and make repository self sufficient (i.e. we would be able to import a repository directly into a blank infrahub instance). This would make repository integration more robust, allowing us to easily test repository and speed up the overall setup process!
Additional Information
No response
The text was updated successfully, but these errors were encountered: