kubernetes/hack/lib
Kubernetes Submit Queue 48cae78257 Merge pull request #36361 from ivan4th/build-container-rsync-optimizations
Automatic merge from submit-queue (batch tested with PRs 38277, 36361, 38452)

Add options for build container rsync optimization

KUBE_RSYNC_COMPRESS env var sets rsync compression level.
KUBE_RSYNC_GENERATED_TO_BUILD_CONTAINER env var disables rsyncing
generated files to build containers.

Why KUBE_RSYNC_COMPRESS is needed -- from rsync manual on `--compress` option (implied by non-zero `--compress-level`):
> Note that this option typically achieves better compression ratios than can be achieved by using a compressing remote shell or a compressing transport because it takes advantage of the implicit information in the matching data blocks that are not explicitly sent over  the connection.

Use case for `KUBE_RSYNC_GENERATED_TO_BUILD_CONTAINER`: when you sometimes build stuff locally (e.g. `make WHAT=cmd/kubectl`) and sometimes do it on remote docker (`build-tools/run.sh make WHAT=cmd/hyperkube`), local builds touch generated files which causes them to be rsynced to the build data container, which may slow down the builds. Still, I'm not sure whether local->remote rsync of generated files is useful (e.g. someone may want to edit generated files for debugging purposes?), so I made not rsyncing these files an option instead of forcing such behavior.
2016-12-11 13:02:53 -08:00
..
etcd.sh Merge pull request #28458 from rbtcollins/master 2016-12-08 02:11:22 -08:00
golang.sh Fix the cross-build 2016-12-10 16:26:21 +02:00
init.sh Add options for build container rsync optimization 2016-11-23 05:40:39 +03:00
swagger.sh Switch generator logic to use pkg/apis/meta/v1 2016-12-03 18:57:30 -05:00
test.sh --export flag belongs to kubectl get, not kubectl 2016-11-17 15:45:55 +01:00
util.sh - Add GroupVersion as tags to OpenAPI spec 2016-10-25 14:27:48 -07:00
version.sh build: Fix version generation. 2016-10-17 09:13:22 +02:00