Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Idea: Support fetching the repository contents from a Flux GitRepository #296

Open
nogweii opened this issue Jun 6, 2024 · 1 comment

Comments

@nogweii
Copy link

nogweii commented Jun 6, 2024

Since I'm running Flux in my cluster already, it would be nice to not have multiple copies of my infrastructure repo. (Using a monorepo approach to put both terraform files and kubernetes manifests together.)

Flux has a well-tested GitRepository CRD and the controller exposes the repository as a .tar.gz in-cluster URL.

What do you think?

@AlanLonguet
Copy link
Collaborator

Hey @nogweii this is an idea we had when we first started working on burrito, initially we wanted to solely rely on the fluxcd source controller, we figured out in the end we didn't want burrito to have such a dependency and we scrapped the idea.

However thinking about it now we could implement a feature to source git bundles from Flux alongside our default way of retrieving those bundles using a GitRepository reference, I don't think it'd be too much of a hassle to implement.

I'll look into it for 0.5 we will be working on some features related to repositories and that might be the best time to include this kind of feature :)

Feel free to contribute if you have any idea how the yaml spec would have to look like on our TerraformRepository CRD, I'd guess something along the lines of this :

source:
  git:
  ....
  flux:
    kind: GitRepository
    name: repo
    namespace: default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants