Skip to content

Releases: kubernetes/git-sync

v3.1.7

08 Sep 17:12
57ee2d1

Choose a tag to compare

  • Add a metric for askpass calls
  • Fix multi-arch builds, so they actually work
  • Add socat to the image so users can set up proxying
  • Better flag input checking
  • Better logs and error messages
  • Add --submodules flag with option to NOT recursively clone submodules

Available at k8s.gcr.io/git-sync/git-sync:v3.1.7
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note the new image pull path includes a "sub-dir" which is different than previous releases!

v3.1.6

01 May 22:03

Choose a tag to compare

Fix bugs that would race on wait(), causing occasional errors or panics.

Fix bug with signals that come in and caused us to miss SIGCHLD.

Fix bugs which mixed stderr with stdout, causing problems with some git configurations that issue warnings.

Move to go 1.14

Available at k8s.gcr.io/git-sync:v3.1.6

v3.1.5

31 Jan 20:52
e7679fe

Choose a tag to compare

  • Bump debian to buster (fixes a bunch of CVEs)

  • Make health-checking report true only after git has synced once.

Available at k8s.gcr.io/git-sync:v3.1.5

v3.1.4

08 Jan 00:09
2eb8bf2

Choose a tag to compare

  • Better logging of commands we run

  • Add --askpass-url flag to get username/password from a URL (e.g. http://metadata)

  • Add --add-user flag to tell git-sync to write the current UID/GID to /etc/passwd. This enables git-over-SSH as an arbitrary UID.

  • Change git credential from cache to store.

Available at k8s.gcr.io/git-sync:v3.1.4

v3.1.3

25 Nov 23:38
cbad455

Choose a tag to compare

  • Added submodules support. Repos which have submodules will have those submodules synced automatically. The --depth flag applies to submodules as well as the main repo.

  • Send the git hash of the sync to webhooks in the "Gitsync-Hash" HTTP header.

  • Handle being run as pid 1 by catching SIGCHLD and forwarding other signals. This should eliminate zombie processes when running in docker containers or Kubernetes pods.

  • Build with Go 1.13

Available at k8s.gcr.io/git-sync:v3.1.3

v3.1.2

26 Jul 21:16
1bbe7d3

Choose a tag to compare

Available as k8s.gcr.io/git-sync:v3.1.2

Update base image to k8s.gcr.io/debian-base:1.0.0

v3.1.1

14 Feb 16:15
7bb3262

Choose a tag to compare

Available as k8s.gcr.io/git-sync:v3.1.1

Fix SSH support and add a working example.

v3.1.0

25 Jan 18:50
3286e39

Choose a tag to compare

Available as k8s.gcr.io/git-sync:v3.1.0

  • Support a timeout flag for sync operations (--timeout, default 120 seconds)
  • Support calling a webhook on each sync (--webhook-*, default disabled)
  • Make SSH key file and known-hosts file flags (--ssh-key-file, --ssh-known-hosts-file)
  • Allow unlimited failures-and-retries (max-sync-failures=-1, default is still 0)
  • Add an optional HTTP server (set --http-bind to enable, default disabled)
  • Add a liveness-probe compatible HTTP endpoint at / (if HTTP enabled)
  • Add prometheus metrics (--http-metrics, depends on HTTP enabled, default on)
  • Add pprof endpoint (--http-pprof, depends on HTTP enabled, default off)
  • Respect --depth more completely

v3.0.1

26 Nov 23:56

Choose a tag to compare

Available as k8s.gcr.io/git-sync:v3.0.1.

  • Add --cookie-file option to specify a git http cookie

  • Better support for running as non-root

  • Clean up failed clones in case of crashes

  • Use rev-parse instead of rev-list, to better support non-annotated tags

v2.0.6

07 Feb 05:30
af91ea2

Choose a tag to compare

Several minor fixes, rolled up.

  • Don't set GIT_SYNC_DEST in Dockerfile.

  • Flip the known_hosts enforcement to true so the git hosts actually get verified.

  • Update to golang-1.9

  • Fix one-shot sync of a rev