Commit Graph

229 Commits

Author SHA1 Message Date
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
Tim Hockin 76bda81e0f bump go to 1.11 2018-11-09 10:20:30 -08:00
Tim Hockin 40e188fb26 Switch to rev-parse
This handles non-annotated tags, which were not handled well before.  It
does mean that we use the hash of the (annotated) tag object instead of
the commit, but that seems OK.

Added a test case.
2018-11-09 10:16:36 -08:00
Karol Chrapek cb1ef896a9 Update url image 2018-10-03 20:57:28 -07:00
Tim Hockin 296093b9df Clean up failed clones
If an initial clone crashes, it can leave the git-root in a bad state
such that git can't retry the clone.  This change forces it to clean up
the mess and retry.
2018-08-21 08:04:45 -07:00
Tim Hockin 2e46b74cf8 Make the default checkout root be under HOME) 2018-08-08 11:37:19 -07:00
Tim Hockin aafbc9a12b Set $HOME so git can write .gitconfig as non-root 2018-07-03 15:00:11 -07:00
Tim Hockin 44c11c4390 Update alpine and golang images 2018-07-03 15:00:11 -07:00
Tim Hockin 9ceb61f794 Clean up doc on GIT_COOKIE_FILE 2018-07-02 14:37:25 -07:00
mattjmcnaughton 94c7154683 Update kubernetes demo/config for example
A couple of changes to make the kubernetes config work
and follow best practices.

- Use `deployment` instead of `pod`.
- Use correct image names.

After these changes, running `kubectl create -f demo/config/` creates a
working deployment/service.
2018-06-06 10:04:22 -07:00
Bryce Cronkite-Ratcliff ef9bc21b8f Error if HTTP & SSH parameters provided
If both HTTP and SSH parameters are provided to the container on
startup, return an error to help users that have confused their
configurations.
2018-06-01 14:45:06 -07:00
Bryce Cronkite-Ratcliff f69e8fb2c0 Add gitcookie configuration option
Add an option to specify a git http cookie file in the k8s yaml
that will be configured as the global git cookie file in the git-sync
client.

This is a useful access mechanism for some some hosted repositories
where SSH and passwords are not easily available, such as Google Cloud
Source Repositories.
2018-06-01 14:45:06 -07:00
mattjmcnaughton 71ea5e8473 Fix README
The README instructs the user to overwrite the TAG variable to set the
tag on `make container`. However, the user should actually overwrite the
`VERSION` variable.
2018-06-01 08:11:24 -07:00
Michael Grosser 9253fe3c3c Add security contacts
Security contacts according to template (https://github.com/kubernetes/kubernetes-template-project/blob/master/SECURITY_CONTACTS)
2018-05-24 08:57:57 -07:00
Tim Hockin 8c16b75db3 Use k8s GCR vanity URL 2018-04-06 13:15:46 -04:00
Sebastian Mandrean 86b15b1c2a Run Go build-image without TTY 2018-03-29 20:55:21 -07:00
Tim Hockin f3f3180419
Merge pull request #86 from wanghanlin/patch-1
Update ssh.md
2018-03-29 20:53:03 -07:00
Hanlin Wang d22b14bec9
Update ssh.md 2018-03-10 15:31:55 +08:00
Tim Hockin 41ca15c427
Merge pull request #83 from thockin/master
add -- to gcloud CLI
2018-02-06 21:30:55 -08:00
Tim Hockin 802aa4604d add -- to gcloud CLI 2018-02-06 21:19:43 -08:00
Tim Hockin af91ea2d3f
Merge pull request #82 from frankfarzan/fix_docker_env
Don't set GIT_SYNC_DEST in Dockerfile.
2018-02-05 21:01:21 -08:00
Frank Farzan c9f2e62ed3 Don't set GIT_SYNC_DEST in Dockerfile.
I'm guessing this is an artifact of previous refactorings.
Currently, GIT_SYNC_ROOT defaults to /git and GIT_SYNC_DEST
defaults to leaf dir of repo.
2018-02-05 19:21:13 -08:00
Tim Hockin 3897ab3936
Merge pull request #80 from thockin-tmp/gcr-vanity
Pushes go to staging-k8s.gcr.io
2018-01-19 09:22:04 -08:00
Tim Hockin 2e07112602 Pushes go to staging-k8s.gcr.io 2018-01-17 14:20:38 -08:00
Tim Hockin 85b22209de
Merge pull request #78 from spiffxp/update-code-of-conduct
Update code-of-conduct.md
2017-12-22 17:29:17 -06:00
Tim Hockin 666d220200
Merge branch 'master' into update-code-of-conduct 2017-12-22 17:29:09 -06:00
Tim Hockin 102afc0abf
Merge pull request #79 from thockin-tmp/gcr-vanity
Convert registry to k8s.gcr.io
2017-12-22 13:30:41 -06:00
Tim Hockin 0304aa8950 Convert registry to k8s.gcr.io 2017-12-22 09:55:17 -08:00
Aaron Crickenberger 762579328c Update code-of-conduct.md
Refer to kubernetes/community as authoritative source for code of conduct
2017-12-20 13:32:20 -05:00
Tim Hockin dac3f77e34 Merge pull request #73 from jorianvo/master
Improve e2e tests
2017-09-22 00:08:29 -07:00