Commit Graph

251 Commits

Author SHA1 Message Date
Steve Jernigan 20f4c73cb7 Update ssh.md
Adding requirement for runAsRoot and suggested configuration for defaultMode.  These are required after previous change to remove the chmod on the key.
2017-02-17 11:08:25 -05:00
Tim Hockin cf2f9135f1 Merge pull request #23 from TerraTech/fix_bashism
Makefile: Fix bashism when building on Ubuntu + dash
2017-02-15 10:46:09 -06:00
Michael Grosser e274263552 Merge pull request #35 from kubernetes/update-demo
Use bare name for DEST in example
2017-02-15 09:03:55 +00:00
Michael Grosser 5eb623c97f Use bare name for DEST in example
Using a path for DEST will fail in subsequent syncs #8.
Using a bare name in examples.
2017-02-15 08:48:58 +00:00
Michael Grosser 237fc1c63e Fix typo 2017-02-06 20:30:35 +00:00
Michael Grosser 1a9138765a Merge pull request #31 from thockin/master
bump e2e timeouts
2017-01-27 06:44:07 +00:00
Tim Hockin d2d9f68d8d bump e2e timeouts 2017-01-26 22:21:54 -08:00
Tim Hockin c2a9f9ff8d Merge pull request #29 from ideahitme/enable-git-ssh-command-env
clean up Dockerfile, remove ssh-wrapper.sh and set env var
2017-01-26 22:15:40 -08:00
ideahitme b8cc35f4fc clean up Dockerfile, remove ssh-wrapper.sh and set env var 2017-01-26 19:04:24 +01:00
Tim Hockin 5e2d975c63 Merge pull request #27 from fate-grand-order/master
fix misspell "recommended" in main.go
2017-01-17 08:57:40 -08:00
fate-grand-order fa78169d25 fix misspell "recommended" in main.go 2017-01-17 15:26:27 +08:00
Tim Hockin b29839f333 Merge pull request #25 from ApsOps/remove-chmod
Remove chmod command since we can specify permissions for a Secret Volume
2016-12-21 18:46:01 -08:00
Aman ea98806bc9
Remove chmod command since we can specify permissions for Secret Volumes
- Fixed because of https://github.com/kubernetes/kubernetes/pull/28936
2016-12-19 21:55:34 +05:30
TerraTech 26c5a26565 Makefile: Fix bashism when building on Ubuntu + dash
Reference: https://wiki.ubuntu.com/DashAsBinSh#A.5B

 Ubuntu's /bin/sh is /bin/dash and '==' triggers an error:
 >> /bin/sh: 1: [: amd64: unexpected operator
2016-11-13 09:05:10 -05:00
Michael Grosser 5b24e1793d Merge pull request #24 from TerraTech/fix_git_depth
main.go: Fixes git error: did you mean `--depth` (with two dashes ?)
2016-11-13 10:42:05 +00:00
TerraTech cf180e765b main.go: Fixes git error: did you mean `--depth` (with two dashes ?) 2016-11-13 03:47:02 -05:00
Tim Hockin 6ed689440f Merge pull request #21 from thockin/push-fix-version
Fix tag variable
2016-11-02 07:22:05 +01:00
Tim Hockin 18ecf7af94 Fix tag variable 2016-11-01 23:20:52 -07:00
Michael Grosser 7fdc7486bc Merge pull request #20 from thockin/use-build-template
Use build template
2016-10-31 08:39:34 +00:00
Tim Hockin 70feeb5ae1 Use the go-build-template
Faster builds and versions from tags.  Also use alpine as a base image.  We
need alpine for other architectures...

Also change the --wait flag to take a float for sub-second waits.
2016-10-30 17:09:06 -07:00
Tim Hockin 1b8d34bc4d Merge pull request #19 from thockin/master
Fix non-master branches and tags
2016-10-28 09:01:09 -07:00
Tim Hockin e5accdd858 Merge pull request #18 from thockin/master
add a test
2016-10-28 08:04:33 -07:00
Tim Hockin 94ff3e8fae Fix non-master branches and tags
This plus the test should ensure no regressions.  Git makes it tricky to do
some things on a remote that you would think to do on a local repo.
`ls-remote` gives me the info I need with only one test for "HEAD" vs anything
else.
2016-10-28 17:02:25 +02:00
Tim Hockin 3fc9485ab8 Add a test 2016-10-28 16:54:50 +02:00
Mike Danese 7984f521cf Merge pull request #12 from thockin/master
Fix when a tag/rev moves
2016-10-13 20:39:14 -07:00
Tim Hockin 0adea90c44 Fix when a tag/rev moves
I know this used to work.  I must have broken it at some point. Manually
verified for HEAD and a real tag.

Also fix some logging so it is less chatty by default.

v2.0.2
2016-10-12 21:56:34 -07:00
Tim Hockin 15ba74321c Merge pull request #9 from thockin/master
Better flag help, error on bad --dest, v2.0.1
2016-10-07 17:21:59 -07:00
Tim Hockin 4523b3a28d Better flag help, error on bad --dest, v2.0.1 2016-10-07 17:20:41 -07:00
Tim Hockin 8bb6ccf948 Merge pull request #5 from thockin/enhance
bump to 2.0.0
2016-10-01 20:27:30 -07:00
Tim Hockin 9b56154cb3 bump to 2.0.0 2016-10-01 20:24:52 -07:00
Mike Danese 182c2d5611 Merge pull request #2 from thockin/enhance
Overhaul git-sync
2016-09-16 09:06:01 -07:00
Tim Hockin be407edce3 update README 2016-09-16 08:35:27 -07:00
Tim Hockin dd09cac833 Default dest to leaf of repo 2016-09-16 08:35:27 -07:00
Tim Hockin dd60fb0312 Clean up logging using glogr 2016-09-16 08:35:27 -07:00
Tim Hockin ff73d8e4f0 Overhaul git logic to sync only when needed
I wanted to understand it all so I ran a bunch of tests and found that it was
resyncing when not required any time the rev was not == HEAD.  Some
stackoverflow and git manpage spelunking produced this.  Nice side-effect is
tha the workdir is named after the githash instead of random.
2016-09-16 08:35:26 -07:00
Tim Hockin 7fcc902aa7 Print the git hash for any rev 2016-09-16 08:35:26 -07:00
Tim Hockin 75998b9237 clean up logging of git runs 2016-09-16 08:35:26 -07:00
Tim Hockin cd1f719e8b Overhaul runCommand()
Better args, logging.
2016-09-16 08:35:26 -07:00
Tim Hockin 344eca6507 Reorder args to make more sense 2016-09-16 08:35:26 -07:00
Tim Hockin 119465829f Minor log cleanup in prep for later changes 2016-09-16 08:35:26 -07:00
Tim Hockin 2d9dbf9fa6 clean up flag definitions 2016-09-16 08:35:26 -07:00
Tim Hockin c39a9369b9 Make /git a parameter rather than const
This makes easier testing.
2016-09-16 08:35:26 -07:00
Tim Hockin 0a403496bf Fix README to actually run 2016-09-16 08:35:26 -07:00
Tim Hockin 4c112490af Get rid of godep - no deps yet 2016-09-16 08:35:26 -07:00
Tim Hockin 5f4837491f Overhaul Makefile and Dockerfile
Trying to standardize builds across architectures.  We wrote this basic
Makefile/Dockerfile template for another container, but it works well, so reuse
it here.
2016-09-16 08:35:22 -07:00
Tim Hockin 4bff742689 Create code-of-conduct.md 2016-08-22 16:18:58 -07:00
Tim Hockin fbef381997 Create CONTRIBUTING.md 2016-08-22 16:18:11 -07:00
Mike Danese 2ed0e3fcba Merge pull request #1 from thockin/master
Move git-sync to a new repo of its very own
2016-08-22 09:27:38 -07:00
Tim Hockin 2a7645cb0f Scrub 'contrib' 2016-08-20 14:17:17 -07:00
Tim Hockin ad53194601 Add files from github.com/kubernetes/contrib/git-sync 2016-08-20 14:14:27 -07:00