Thomas Jackson
4df44b1fcf
Add http handler option
2019-01-22 17:26:27 -08:00
Thomas Jackson
07f0e6dde2
Cleanup container from sync-loop-timeout
...
Otherwise any test running afterwards fails because it left the
container running.
2019-01-22 17:15:03 -08:00
Thomas Jackson
b0c1234787
Add e2e tests for depth flag
2019-01-22 16:59:53 -08:00
Thomas Jackson
f1a1a1b61e
Use depth option when doing fetches
...
Previously the `depth` flag was only used for the initial clone-- so
although you might start with a depth=10 as more commits show up you are
always >10. With this diff we enforce that depth on each fetch, this way
old-commits can get GCd off to reduce the size of the local checkout
required.
2019-01-22 16:44:16 -08:00
Kubernetes Prow Robot
720753a200
Merge pull request #131 from jacksontj/pr_110
...
Add Webhook on git-sync update
2019-01-22 16:25:40 -08:00
Thomas Jackson
87503c6dce
Clarify webhook behavior in docs/README
2019-01-22 14:12:49 -08:00
Thomas Jackson
edaa75b8a5
Remove empty comment line
2019-01-22 14:12:49 -08:00
Thomas Jackson
ad41260327
Clarify success-status config/option
2019-01-22 14:12:49 -08:00
Thomas Jackson
54ec971ba0
Remove "duration" from flag/env/var names
2019-01-22 14:12:49 -08:00
Thomas Jackson
9bfa91b0af
Update README to new flags
2019-01-22 14:12:49 -08:00
Thomas Jackson
6e0bd948ec
Add option to control backoff for failed webhook calls
2019-01-22 14:12:49 -08:00
Thomas Jackson
fdc9b49de2
Reduce to a single webhook call
2019-01-22 14:12:49 -08:00
Thomas Jackson
96714ebed2
Remove global trigger channel
...
Instead change syncRepo to return a boolean which is whether a change
occured.
2019-01-22 14:12:49 -08:00
Thomas Jackson
5c63dc9cb5
Update README based on comments in #110
2019-01-22 14:12:49 -08:00
Thomas Jackson
39ca0a2ca0
Fix error log to print out actual status codes
2019-01-22 14:12:49 -08:00
Thomas Jackson
18f68d3ab6
Move timeout into the json arg for webhook
2019-01-22 14:12:49 -08:00
Thomas Jackson
a45699efb1
goimports
2019-01-22 14:12:49 -08:00
Zac
160d68f29c
removed unecessary logs
2019-01-22 14:12:49 -08:00
Zac
6b8aac0b83
modularized and documented
2019-01-22 14:12:49 -08:00
Zac
e437d8e9a3
adding changes from previous PR, updated README
2019-01-22 14:12:49 -08:00
Zac
01f007a753
updated verbosity settings for POST request log
2019-01-22 14:12:49 -08:00
Zac
f8f555d73a
updated post request code
2019-01-22 14:12:49 -08:00
Zac
0eac8fc5cf
added some logs and moved where the post request is made
2019-01-22 14:12:49 -08:00
Zac
7f64d79bbe
Updated main to add the env var and send a post request
2019-01-22 14:12:49 -08:00
Kubernetes Prow Robot
08282abe9d
Merge pull request #132 from jacksontj/ssh_flags
...
Add flags/env-vars for additional SSH options
2019-01-22 13:54:23 -08:00
Thomas Jackson
b9c0ed3f5d
Update env vars based on comments
2019-01-22 13:41:45 -08:00
Thomas Jackson
088065e494
Normalize flag names to include `-file`
2019-01-22 13:41:45 -08:00
Thomas Jackson
933bbdfc1f
Add flag for ssh known hosts file
2019-01-22 13:41:45 -08:00
Thomas Jackson
c4c68e2620
Move SSH key path to a flag
2019-01-22 13:41:45 -08:00
Kubernetes Prow Robot
1c3af08207
Merge pull request #137 from jacksontj/gomod
...
Switch from godeps to `go mod`
2019-01-22 13:29:56 -08:00
Thomas Jackson
279bbc307e
Switch from godeps to `go mod`
2019-01-22 11:21:57 -08:00
Kubernetes Prow Robot
772c3b3078
Merge pull request #133 from jacksontj/failure
...
Add option to allow for unlimited failures
2019-01-22 09:23:43 -08:00
Tim Hockin
ca502bbe9b
Merge branch 'master' into master
2019-01-22 09:05:45 -08:00
Thomas Jackson
5573584fc6
Only allow -1 as "unlimited failures"
2019-01-18 09:08:50 -08:00
Thomas Jackson
ba3f44ca28
Add option to allow for unlimited failures
2019-01-17 16:01:49 -08:00
chris060986
59f5554348
Fix intention of makefile
2019-01-16 09:15:34 +01:00
Kubernetes Prow Robot
82ae99da74
Merge pull request #128 from thockin/master
...
OWNERS wants 'approvers' not 'maintainers'
2019-01-15 08:43:54 -08:00
Tim Hockin
6357ad105f
Merge branch 'master' into master
2019-01-15 08:40:41 -08:00
Kubernetes Prow Robot
a854089113
Merge pull request #123 from george-angel/master
...
Add a configurable timeout to the sync process
2019-01-15 08:40:23 -08:00
Tim Hockin
d5c4c10a26
OWNERS wants 'approvers' not 'maintainers'
2019-01-15 08:39:42 -08:00
George Angel
a86ad5d950
add timeout tests
...
- custom `git` command option
- tests on slow running git commands
2019-01-04 22:32:53 +00:00
George Angel
cb8eac2b75
revert to original conditional format
2019-01-04 20:50:57 +00:00
George Angel
5a2584188f
fix context cancelling
2019-01-04 20:50:57 +00:00
George Angel
db07a432cd
Add a configurable timeout to the sync process
2019-01-04 20:50:57 +00:00
Tim Hockin
648d31b7f2
fix e2e script to work with os/arch tags
2019-01-04 11:36:19 -08:00
chris060986
ea7c288dc3
Add proxy support to build
2018-12-20 14:41:06 +01:00
Kubernetes Prow Robot
8ef40b88e5
Merge pull request #121 from thockin/fix-hugo-demo
...
Fix hugo demo and docs
2018-12-19 08:31:59 -08:00
Tim Hockin
644151a1d3
Fix hugo demo and docs
...
The hugo demo runs again.
Also removed docs on need to run as root. Pretty sure you do not need
to.
2018-12-17 11:44:50 -08:00
Joshua Carp
1415acdf0e
Update example volume mount
...
Since the default clone path is $HOME/git and the docker image sets $HOME to /tmp, we have to mount the volume at `/tmp/git` for the container to write files to the volume. As written, the example doesn't write to the volume.
2018-12-17 10:57:06 -08:00
Tim Hockin
ada75e9c6c
Build a manifest list
...
Retool some of the build/test to produce a manifest-list rather than a
single image.
2018-11-09 14:20:23 -08:00