Kubernetes Prow Robot
a3affe9040
Merge pull request #372 from SpencerMalone/sparse-checkouts
...
Add support for sparse-checkout
2021-04-23 08:32:02 -07:00
Spencer Malone
07e552b506
Add support for sparse-checkout
2021-04-23 08:17:58 -07:00
Tim Hockin
e9a9d91601
Fix licenses for other arch'es
2021-04-16 08:22:00 -07:00
Kubernetes Prow Robot
7bb33fbccb
Merge pull request #376 from amccague/patch-1
...
Update to latest base image debian-base:buster-v1.6.0
2021-04-15 08:41:50 -07:00
Adrian McCague
a07a87e0e6
Update to latest base image
...
Uses to the latest promoted debian base image: https://github.com/kubernetes/k8s.io/pull/1891
Overcomes two published vulnerabilities:
* https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24032
* https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24031
My organisation cares about published and fixed vulnerabilities and we use this tool extensively.
2021-04-15 00:05:06 +01:00
Kubernetes Prow Robot
448f4b412c
Merge pull request #331 from nan-yu/release-3.x
...
Export the error details to an error file
2021-04-09 11:09:16 -07:00
Nan Yu
8ea449292b
Export the error details to an error file
...
The current git-sync process outputs the error information to standard
out, which is inaccessible from outside the container. Users have to
dump the logs using kubectl logs in order to check the error details in
the git-sync process. This commit exports the error details to a file,
which provides users the capability to check the errors directly from
other sidecar containers.
proposal: https://github.com/kubernetes/git-sync/issues/326
2021-04-09 11:00:52 -07:00
Kubernetes Prow Robot
50917bf2f9
Merge pull request #371 from thockin/exec-hook-after-symlink-v3
...
Move sync-hook to after symlink flip
2021-04-07 16:53:41 -07:00
Kubernetes Prow Robot
b0ac361b2c
Merge pull request #365 from thockin/licenses-v3
...
Copy all licenses into the container image (v3)
2021-04-07 05:17:53 -07:00
Tim Hockin
d508f04bbe
Move sync-hook to after symlink flip
2021-04-05 17:04:44 -07:00
Tim Hockin
a9266edbef
update go.mod to 1.16
2021-03-29 21:16:59 -07:00
Tim Hockin
258248aadc
Copy all licenses into the container image
2021-03-29 16:41:57 -07:00
Tim Hockin
b161f3f0c7
Add infrastructure for build tools
...
As per discussion with Go team. it's hacky but it works.
create tools.go
git add tools.go
go mod vendor
git add vendor
go mod tidy
go mod vendor # again
2021-03-29 16:35:13 -07:00
Tim Hockin
ab63a9181a
Update Go module metadata
2021-03-29 16:31:08 -07:00
Shubham Choudhary
32828834a7
Add GIT_SYNC_ROOT change for non-root user in docs/ssh ( #354 )
...
* Add GIT_SYNC_ROOT change for non-root user in docs/ssh
https://github.com/kubernetes/git-sync/pull/97\#issuecomment-800606819
* linewrap
* minor
* Add GIT_SYNC_ROOT change for non-root user in docs/ssh
https://github.com/kubernetes/git-sync/pull/97\#issuecomment-800606819
* linewrap
* minor
* minor
2021-03-24 21:55:29 -07:00
Kubernetes Prow Robot
f28d802e7c
Merge pull request #360 from thockin/build-no-tty-v3
...
Don't require a TTY to build/test
2021-03-18 05:29:19 -07:00
Tim Hockin
68f8497ad5
Don't require a TTY to build/test
2021-03-17 21:59:39 -07:00
Kubernetes Prow Robot
dca446e054
Merge pull request #343 from thockin/fix-pid1-exit-code-v3
...
Fix exit non-zero exit codes when running as pid1
2021-03-15 09:37:05 -07:00
Tim Hockin
11c2a1fd7b
Fix exit non-zero exit codes when running as pid1
...
Prior to this we would swallow the exit code and always exit(0).
2021-03-15 09:30:46 -07:00
Kubernetes Prow Robot
de2a216922
Merge pull request #341 from thockin/add-git-configs-flag-3.x
...
Add --git-config flag
2021-03-15 07:45:05 -07:00
Kubernetes Prow Robot
a34327d9a2
Merge pull request #350 from thockin/readlink-is-api-v3
...
Change the symlink targets to just the SHA
2021-03-12 03:04:17 -08:00
Kubernetes Prow Robot
e4e514e7a2
Merge pull request #348 from thockin/build-no-cache-v3
...
Build container without cache
2021-03-12 02:54:17 -08:00
Kubernetes Prow Robot
eabadc25be
Merge pull request #346 from thockin/update-git
...
Update git from backports
2021-03-12 02:52:18 -08:00
Tim Hockin
770314995f
Change the symlink targets to just the SHA
...
This allows users to call readlink() on the link and learn the current
checked out SHA.
2021-03-11 22:07:07 -08:00
Tim Hockin
8f58fd90e1
Update git from backports
...
Some bugs have been fixed that impact some users.
2021-03-11 21:41:51 -08:00
Tim Hockin
1f1e2369b1
Build container without cache
2021-03-11 19:26:53 -08:00
Tim Hockin
aaba35def9
Update git from backports
...
Some bugs have been fixed that impact some users.
2021-03-11 19:17:04 -08:00
Tim Hockin
45bba183ca
Add --git-config flag
...
This allows arbitrary git configs to be passed in. For example:
`git config --global http.postBuffer 1048576000`
`git config --global http.sslCAInfo /path/to/cert/file`
`git config --global http.sslVerify false`
This flag takes a comma-separated list of `key:val` pairs. The key part
is passed to `git config` and must be a valid gitconfig section header
and variable name. The val part can be either a quoted or unquoted
value. For all values the following escape sequences are supported:
* `\n` => [newline]
* `\t` => [tab]
* `\"` => `"`
* `\,` => `,`
* `\\` => `\`
Within unquoted values, commas MUST be escaped. Within quoted values,
commas MAY be escaped, but are not required to be. Any other escape
sequence is an error.
Example:
`--git-config=foo.one:val1,foo.two:"quoted val",foo.three:12345`
This commit exposed a bug in runCommand() which modified its args when
they had an embedded space.
2021-03-10 19:07:05 -08:00
Tim Hockin
05a099a964
Update debian base and golang images
2021-02-12 11:39:09 -08:00
Kubernetes Prow Robot
95cb2dcbd3
Merge pull request #333 from thockin/v3-e2e-use-docker-nc
...
Use docker to run helper servers in e2e
2021-02-03 03:04:28 -08:00
Tim Hockin
a524d5eacd
Use docker to run helper servers in e2e
...
Reliably cleaning up leftover things like nc processes is surprisingly
difficult in pure shell. e2e passes on the 3.x branch now.
2021-01-23 15:56:08 -08:00
Kubernetes Prow Robot
801413b5c7
Merge pull request #329 from thockin/release-3.x
...
Default --root flag in container
2021-01-22 04:35:27 -08:00
Tim Hockin
e7806f577f
Default --root flag in container
...
This makes the container easier to use and allows docker volumes to be
used in a more obvious way.
2021-01-21 12:32:51 -08:00
Kubernetes Prow Robot
2ddc693755
Merge pull request #327 from thockin/release-3.x
...
Add an example pod YAML
2021-01-21 01:53:01 -08:00
Tim Hockin
939d273bec
Add an example pod YAML
2021-01-20 16:24:40 -08:00
Tim Hockin
a37a672b40
Fix e2e to always specify branch name
...
As git changes the default from "master" to "main", it's not
predictable. Now the test owns the decision.
2021-01-07 09:44:34 -08:00
Kubernetes Prow Robot
e3a21300de
Merge pull request #321 from thockin/release-3.x
...
Allow octal and hex values for int flags
2021-01-07 05:57:46 -08:00
Tim Hockin
ffba2eb119
Allow octal and hex values for int flags
...
This is specifcally relevant to --change-permissions.
2021-01-06 13:49:02 -08:00
Kubernetes Prow Robot
8ce96b33d3
Merge pull request #317 from thockin/release-3.x
...
Change CONTRIBUTING.md to CNCF CLA
2020-12-23 11:30:27 -08:00
Tim Hockin
f71f5b9650
Change CONTRIBUTING.md to CNCF CLA
2020-12-23 10:57:36 -08:00
Kubernetes Prow Robot
5996005bea
Merge pull request #295 from daixiang0/doc
...
README: add buildx comment
2020-10-28 09:07:56 -07:00
Xiang Dai
7df021c9ff
README: add buildx comment
...
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-10-28 16:44:00 +08:00
Kubernetes Prow Robot
c72a880352
Merge pull request #294 from andres-lowrie/master
...
docs: add PAT option for `--password`
2020-10-11 10:48:47 -07:00
Kubernetes Prow Robot
cdc62dead8
Merge pull request #293 from stp-ip/lineBreaksReadme
...
Fix line breaks in README
2020-10-06 13:36:43 -07:00
Andres Lowrie
3c79569bd7
docs: add PAT option for `--password`
...
This could help users that are not aware that github personal access tokens can be used as passwords. It's verbose could be helpful
2020-10-06 11:23:18 -05:00
Michael Grosser
decb118c58
Fix line breaks in README
2020-10-06 15:04:38 +00:00
Kubernetes Prow Robot
5467f372bb
Merge pull request #292 from thockin/e2e-vflag
...
Move --v into e2e framework (always same value)
2020-10-04 07:23:06 -07:00
Tim Hockin
771011f0cc
Move --v into e2e framework (always same)
2020-10-02 14:38:19 -07:00
Kubernetes Prow Robot
410c5950b8
Merge pull request #285 from unknowingknow/add-sync-hook-command
...
add an option to run the command when the repository is updated
2020-10-02 13:13:04 -07:00
unknowingknow
9661d3132e
add e2e test for --sync-hook-command
2020-10-02 19:29:21 +09:00