Commit Graph

212 Commits

Author SHA1 Message Date
Michael Peick c3d026bf2b Cleanup test. 2019-10-27 14:47:18 +01:00
Michael Peick f0ec409582 Populate last hash value in case webhook is slower than the main loop. 2019-10-27 14:33:40 +01:00
Michael Peick e214aeb4d6 Rename http header "Git-Sync-Hash" into "Gitsync-Hash". 2019-10-26 13:34:39 +02:00
Michael Peick 1eb223e2cc Do not send branch information as http header. 2019-10-26 13:34:16 +02:00
Michael Peick 9ecc67fb3a Sent git hash and branch in the HTTP header of the webhook. 2019-10-25 10:42:37 +02:00
Kubernetes Prow Robot 7e10cb7d13
Merge pull request #185 from michallula/feautre/submodules-support
 add submodules support
2019-10-18 13:11:37 -07:00
Michal Lula d263429c6d 🎨 add todo comment for --depth flag support 2019-10-18 17:50:04 +02:00
Michal Lula 41c8572ad6 add tests 2019-10-11 17:58:47 +02:00
Michal Lula 3f06a3ba4b :spakrles: add git submodules support 2019-10-02 16:41:28 +02:00
Kubernetes Prow Robot 1bbe7d3a2c
Merge pull request #178 from thockin/master
Fix multi-platform build in Makefile
2019-07-26 14:15:59 -07:00
Tim Hockin 42e6d691fa Fix multi-platform build in Makefile 2019-07-26 14:08:27 -07:00
Kubernetes Prow Robot 78d0de2f52
Merge pull request #177 from sandyjensen/master
Rebase against more recent k8s.gcr.io/debian-base image.
2019-07-26 13:43:58 -07:00
Sandy Jensen 22b8036ab8 Rebase against more recent k8s.gcr.io/debian-base image.
This addresses several high-severity vulnerabilities that have been fixed:

CVE-2016-9841
CVE-2016-9843
CVE-2017-15670
CVE-2017-15804
CVE-2017-16997
CVE-2017-18269
CVE-2017-1000408
CVE-2018-11236
CVE-2018-20843
CVE-2019-3855
2019-07-26 11:16:30 -07:00
Kubernetes Prow Robot 5482a3ed24
Merge pull request #163 from filmil/remove-special-codepath
git-sync: removes special exit on first error
2019-04-02 22:05:42 -07:00
Filip Filmar bbf6d60f36 git-sync: removes special exit on first error
Old code used to exit at any error seen on first sync attempt.  This
didn't prove useful in practice, so removing that special case.

This may make git-sync slower to recover after user fixes a
non-retryable error, as now flMaxSyncFailures are needed before the pod
fails.  It may make sense in practice.

Fixes #161, in a different way than is proposed in PR #162.
2019-04-02 10:06:00 -07:00
Kubernetes Prow Robot aa241c2352
Merge pull request #147 from PhilippeDupont/patch-1
Fix typo
2019-03-25 18:05:17 -07:00
Michael Grosser 57d200fca1 Use vendor and build automatic build cache 2019-03-25 08:54:44 -07:00
Tim Hockin 15d53f3b99 Simplify for Go modules 2019-03-25 08:54:44 -07:00
Tim Hockin 4493070350 Add --version flag 2019-03-25 08:54:44 -07:00
Tim Hockin 5c09cac67c Fix e2e to avoid undef var 2019-03-25 08:54:44 -07:00
Tim Hockin 59af7bf5a8 Bump go to 1.12 2019-03-25 08:54:44 -07:00
Tim Hockin 831eae8f9f Use official logr rather than thockin 2019-03-25 08:54:44 -07:00
Kubernetes Prow Robot 076076dd9f
Merge pull request #154 from thockin/baseimage-debian
Use debian-base as base image
2019-03-24 06:21:05 -07:00
Tim Hockin 653bd85fc6 Use debian-base as base image
All of the main Kubernetes components are switching to it, since we can
maintain it more easily.
2019-03-11 17:16:53 -07:00
Kubernetes Prow Robot b3e501fc68
Merge pull request #152 from joelsmith/secdoc
Update embargo doc link in SECURITY_OWNERS and change PST to PSC
2019-03-08 10:13:56 -08:00
Joel Smith 2eb8ff1182 Update embargo doc link in SECURITY_OWNERS and changes PST to PSC 2019-03-08 10:23:48 -07:00
Philippe Dupont 0c3b730403 Fix Typo 2019-02-21 15:46:51 +01:00
Kubernetes Prow Robot 7bb3262084
Merge pull request #144 from thockin/fix-ssh
Fix SSH
2019-02-11 12:38:26 -08:00
Tim Hockin 51f19b81c9 Fix SSH
* Create a git-sync user to run as, with an entry in /etc/passwd and
writable homedir

* Remove our own validation of key perms - let SSH do that.

* Update docs,
2019-02-07 16:32:01 -08:00
Kubernetes Prow Robot c1edeed768
Merge pull request #143 from thockin/build-rel-tweaks
Fix bad perms on make
2019-02-01 10:12:27 -08:00
Tim Hockin 899ae45fa2
Merge branch 'master' into build-rel-tweaks 2019-02-01 10:09:36 -08:00
Tim Hockin f7546fc17f Fix bad perms on make 2019-02-01 08:23:54 -08:00
Kubernetes Prow Robot 32982a9dda
Merge pull request #142 from EugeneChung/patch-1
~ -> $HOME
2019-01-31 00:39:36 -08:00
Eugene Chung 4b8d266d1f
~ -> $HOME
On Mac, ~ is not translated to the home directory. I guess $HOME is more portable.
2019-01-31 17:15:38 +09:00
Kubernetes Prow Robot d43840aa01
Merge pull request #141 from thockin/build-rel-tweaks
Build rel tweaks
2019-01-28 12:51:45 -08:00
Tim Hockin dbfa625b4e Sync to latest go-build-template Makefile 2019-01-28 11:42:28 -08:00
Tim Hockin 1c374dab1f Update Makefile to not repeat build when possible 2019-01-28 10:53:16 -08:00
Kubernetes Prow Robot fc8555da29
Merge pull request #140 from thockin/build-rel-tweaks
Clean up / document build and release
2019-01-25 13:37:01 -08:00
Tim Hockin 497c7df123 Clean up / document build and release
In writing better RELEASING docs, I realized the build was repeating
steps.  In fixing that I fixed some make deps, but realized I *still*
can't make the build ideal.

At least it is written down now...
2019-01-25 10:45:09 -08:00
Kubernetes Prow Robot 3286e39b80
Merge pull request #139 from jacksontj/tests
e2e test for #135 and #131
2019-01-23 12:47:52 -08:00
Thomas Jackson 5676842f8c Address comments from PR 2019-01-23 12:30:19 -08:00
Thomas Jackson b2677cc434 Add e2e test for http handler
Tests for #135
2019-01-23 11:05:47 -08:00
Thomas Jackson 6d98f420e7 Add e2e test for webhook
Test for #131
2019-01-23 11:05:47 -08:00
Kubernetes Prow Robot 95d1059554
Merge pull request #122 from chris060986/master
Allow to build container behind a proxy
2019-01-23 08:27:10 -08:00
Tim Hockin b75b896e1b
Merge branch 'master' into master 2019-01-23 08:25:14 -08:00
Kubernetes Prow Robot c49fb6eb00
Merge pull request #135 from jacksontj/metrics
Add metrics to the git-sync process
2019-01-23 08:24:10 -08:00
Tim Hockin abf5f0748d
Merge branch 'master' into metrics 2019-01-23 08:18:21 -08:00
Tim Hockin 59c5910890
Merge branch 'master' into master 2019-01-23 08:04:22 -08:00
chris060986 e37fa08e74 Fix docker build arg for https proxy 2019-01-23 07:35:13 +01:00
Kubernetes Prow Robot 511b3997ab
Merge pull request #138 from jacksontj/fetch_depth
Use depth option when doing fetches
2019-01-22 17:36:19 -08:00