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

Switch to kubernetes/git-sync for datadir initialization #74

Open
edevosc2c opened this issue Nov 28, 2023 · 0 comments
Open

Switch to kubernetes/git-sync for datadir initialization #74

edevosc2c opened this issue Nov 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@edevosc2c
Copy link
Member

edevosc2c commented Nov 28, 2023

Currently, we use a raw git command for cloning the datadir: https://github.com/georchestra/helm-georchestra/blob/main/templates/_bootstrap-georchestra-datadir.tpl

I recently came across an official way of git cloning inside Kubernetes: https://github.com/kubernetes/git-sync

This script has the benefit of offering many useful features for us:

  • easy known hosts file verification: --ssh-known-hosts-file. related to Allow ability to verify host key for git clone of datadir using SSH protocol #36
  • automatic retry in case the git server is not available, or an error occurred at the time of the clone: --max-failures
  • ability to set user permissions for the clone: --add-user. may be useful for setting the same UID as the main container
  • ability to set credentials using a json config: --credential. may be useful for supporting HTTPS (not SSH) based repositories
  • ability to use HTTP proxies. may be useful for environments with strict security requirements. https://github.com/kubernetes/git-sync/blob/master/docs/proxy.md
  • all the options are available through environment variables, so anyone can configure more options without clogging up the helm chart with all the different git options.
@edevosc2c edevosc2c added the enhancement New feature or request label Nov 28, 2023
@edevosc2c edevosc2c changed the title Sync to kubernetes/git-sync for datadir initialization Switch to kubernetes/git-sync for datadir initialization Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant