Tim Hockin
27b43e624b
e2e: move flags and better errors
2019-11-19 07:44:02 -08:00
Tim Hockin
2b11e078b0
Remove default-value flags in e2e
2019-11-19 07:44:02 -08:00
Tim Hockin
5a73199cf7
all e2e should use file://repo
2019-11-19 07:44:02 -08:00
Tim Hockin
405bfefdc2
e2e: don't pass one-time and wait
2019-11-19 07:44:02 -08:00
Tim Hockin
5e82e574ac
e2e more random (I actually hit this)
2019-11-19 07:44:02 -08:00
Tim Hockin
c94c8087de
e2e --one-time tests can be sync
2019-11-19 07:44:02 -08:00
Tim Hockin
bc0980b906
make e2e easier to read
2019-11-19 07:44:02 -08:00
Tim Hockin
bde21410c6
Clean up e2e formatting
2019-11-19 07:44:02 -08:00
Kubernetes Prow Robot
6e604b38b9
Merge pull request #200 from thockin/followup-pr-193-webhook-cleanup
...
Clean up webhook a bit
2019-11-19 07:43:42 -08:00
Tim Hockin
5daf3a42f7
Clean up webhook a bit
...
Return hash so we don't need to recalculate.
Rename some funcs.
2019-11-17 13:22:38 -08:00
Kubernetes Prow Robot
7353b157b2
Merge pull request #193 from peick/http-header-webhook
...
Sent git hash and branch in the HTTP header of the webhook.
2019-10-29 09:16:46 -07:00
Kubernetes Prow Robot
012d0bfbf0
Merge pull request #194 from thockin/fix-pid1
...
Handle running as PID 1
2019-10-28 15:52:43 -07:00
Michael Peick
5cb2198689
Remove unnecessary comment.
2019-10-28 21:58:44 +01:00
Michael Peick
440eac730e
Make hash value updates and reads atomic using mutex.
2019-10-28 21:57:03 +01:00
Kubernetes Prow Robot
26f21906be
Merge pull request #197 from hypnoglow/fix-nits
...
Fix minor issues from linters
2019-10-28 13:26:44 -07:00
Kubernetes Prow Robot
4bb587e083
Merge pull request #190 from hypnoglow/switch-to-runcommand
...
Replace exec.Command with runCommand
2019-10-28 13:24:43 -07:00
Igor Zibarev
bff7e7bf43
Replace exec.Command with runCommand
2019-10-28 22:16:56 +03:00
Igor Zibarev
7a3c0679d5
Fix minor issues from linters
2019-10-28 22:05:39 +03:00
Tim Hockin
2a42fba009
Handle running as pid 1
...
This detects when it is running as pid 1, and becomes an init process.
Specifically this means handling SIGCHLD and reaping processes
(otherwise they become zombies) and forwarding signals to "real"
process.
We fork and re-exec ourselves so that we only get *this* SIGCHLD for
orphaned processes (re-parented to 1) and not the real events from
running things like git or ssh.
2019-10-27 09:45:27 -07:00
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
Tim Hockin
98022e4fe8
Don't rebuild the base layers when not needed
2019-10-25 21:00:02 -07:00
Kubernetes Prow Robot
b291874d3b
Merge pull request #187 from michallula/feature/submodule-depth-support
...
support --depth flag for submodules
2019-10-25 08:37:41 -07:00
Michael Peick
9ecc67fb3a
Sent git hash and branch in the HTTP header of the webhook.
2019-10-25 10:42:37 +02:00
Michal Lula
d1b97bae6c
✨ support of depth flag
2019-10-22 16:43:51 +02:00
Michal Lula
94818756af
🔧 ☔ add depth flag support and cover with tests
2019-10-21 10:40:51 +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