storage icon indicating copy to clipboard operation
storage copied to clipboard

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

Open Dentrax opened this issue 3 years ago • 3 comments

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

Dentrax avatar Dec 15 '21 12:12 Dentrax

@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

jdolitsky avatar Jan 06 '22 16:01 jdolitsky

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.

rjeczalik avatar Jan 28 '22 08:01 rjeczalik

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

jdolitsky avatar Jan 28 '22 15:01 jdolitsky