git-sync

by olympus

Helm chartv1.0.0-rc.1App v3.6.5Verified publisher

A sidecar app which clones a git repo and keeps it in sync with the upstream.

About this chart

git-sync

A sidecar app which clones a git repo and keeps it in sync with the upstream.

This is a helm chart for git-sync

TL;DR;

$ helm repo add olympus https://charts.itstoni.com/
$ helm install olympus/git-sync

Configuration

The following table lists the minimum required configuration parameters of the git-sync chart and their default values.

ParameterDescriptionDefault
env.GIT_SYNC_REPOthe git repository to clonerequired
env.GIT_SYNC_BRANCHthe git branch to check outmain
env.GIT_SYNC_SUBMODULESgit submodule behavior: one of 'recursive', 'shallow', or 'off'off
env.GIT_SYNC_HTTP_METRICSenable metrics on git-sync's HTTP endpointtrue
env.GIT_SYNC_WAITthe number of seconds between syncs5
argsadditional arguments to use on git-sync ommand-v=3
persistence.existing.claiman existing volume claim to use for git clonenil

Please visit to git-sync project for more environment and args settings.

Deploy git-sync with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has git-sync on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgit-sync is pinned at v1.0.0-rc.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply