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

GitOps Storage: add support for specifying a Git provider for storage backend #436

Open
Dentrax opened this issue Dec 15, 2021 · 3 comments

Comments

@Dentrax
Copy link

Dentrax commented Dec 15, 2021

TL;DR: We are proposing to add a new storage backend for GitHub/GitLab to store/mirror the charts.


GitOps is having a Git repository that always contains declarative descriptions of the infrastructure currently desired in the production environment and an automated process to make the production environment match the described state in the repository. 1

Let's assume we have a self-managed GitLab server. And we prefer not to use for the external storage in the cloud services.

Here is the idea for the GitLab:
0. GitLab Hostname: gitlab.internal.com, base group /helm-charts

  1. We want to store https://falcosecurity.github.io/charts chart in the repo called falcosecurity/charts
  2. Create a root group called /helm-charts, if not exist
  3. Create a subgroup called falcosecurity, if not exist
  4. Create a repo called charts, if not exist
  5. Force push the all files (or commits) to store

We can create custom gitlab.go and github.go providers for this if it makes sense!

cc @jdolitsky

Footnotes

  1. https://www.gitops.tech/#what-is-gitops

@jdolitsky
Copy link
Collaborator

@Dentrax I think it's a fantastic idea.

Would be great if it was "generic" git provider, but maybe necessary to have separate GitHub/GitLab providers

@rjeczalik
Copy link

I hacked a quick backend for github.com, some examples here if anyone is interested in trying out: https://hub.docker.com/repository/docker/rjeczalik/chartmuseum-github

If this is a good direction, I could cleanup the code, add some missing parts and try to merge it with the upstream.

@jdolitsky
Copy link
Collaborator

@rjeczalik would be great to see a PR for github backend 👍

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

3 participants