k3s/hack
Kubernetes Submit Queue 84b3dcca08
Merge pull request #56249 from ixdy/git-archive-source-tarballs
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use `git archive` to produce kubernetes-src.tar.gz when git tree is clean

**What this PR does / why we need it**: uses `git archive` to embed version information in the kubernetes source tarball produced in releases. Due to recent changes, the version information was missing from the source tarball, causing builds from these source tarballs to potentially fail.

This also includes a fix inspired by #56216, since the ld flags in `hack/lib/version.sh` are not space-safe.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #56246

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

/assign @david-mcmahon 
/priority urgent-soon
/sig release
cc @mrueg
2017-11-22 23:58:42 -08:00
..
boilerplate update BUILD files 2017-10-15 18:18:13 -07:00
cmd/teststale update BUILD files 2017-10-15 18:18:13 -07:00
e2e-internal Remove all traces of federation 2017-10-26 13:37:37 -07:00
gen-swagger-doc generated files 2017-11-18 20:05:40 +00:00
jenkins Stop running unit tests outside of Bazel. 2017-11-07 16:48:56 -08:00
lib Merge pull request #56249 from ixdy/git-archive-source-tarballs 2017-11-22 23:58:42 -08:00
make-rules Revert "Kubelet flags take precedence over config from files/ConfigMaps" 2017-11-21 23:55:43 -05:00
testdata add apply --force --overwrite deployment lables e2e test enhance 2017-11-01 00:21:14 +08:00
verify-flags some small fix in verify-flags-underscore 2017-08-14 14:55:42 +08:00
.golint_failures Add new Events API group 2017-11-22 18:40:09 +00:00
BUILD update BUILD files 2017-10-15 18:18:13 -07:00
OWNERS Adding vishh as an Owner for hack directory 2017-10-16 13:12:36 -07:00
autogenerated_placeholder.txt
benchmark-go.sh
build-cross.sh
build-go.sh
build-ui.sh
cherry_pick_pull.sh
dev-build-and-push.sh
dev-build-and-up.sh
dev-push-hyperkube.sh
e2e-node-test.sh Fix typo in e2e-node-test.sh 2017-09-19 18:10:21 +05:30
e2e.go Add signal handler for catching Ctrl-C on hack/e2e 2017-08-23 16:05:46 -07:00
e2e_test.go
generate-bindata.sh
generate-docs.sh Remove all traces of federation 2017-10-26 13:37:37 -07:00
get-build.sh
ginkgo-e2e.sh Fix influxdb e2e test failure. 2017-11-10 09:16:45 +01:00
godep-restore.sh Clean up godep scripts to be self-contained 2017-09-29 15:16:03 -07:00
godep-save.sh Vendor godep v79 and use it 2017-09-29 15:16:09 -07:00
grab-profiles.sh
import-restrictions.yaml Expose single annotation/label via downward API 2017-11-21 19:21:10 -08:00
install-etcd.sh
list-feature-tests.sh Fix list-features script 2017-08-27 22:20:04 -04:00
local-up-cluster.sh move the MutatingAdmissionWebhook to the last in the mutating amdission 2017-11-22 08:55:16 -08:00
lookup_pull.py
print-workspace-status.sh
run-in-gopath.sh
test-cmd.sh
test-go.sh
test-integration.sh
test-update-storage-objects.sh etcd: update version to 3.1.10 2017-10-02 12:27:46 -07:00
update-all.sh Remove all traces of federation 2017-10-26 13:37:37 -07:00
update-api-reference-docs.sh
update-bazel.sh Merge pull request #54001 from cblecker/sed-func 2017-10-31 03:09:46 -07:00
update-codegen.sh Add new Events API group 2017-11-22 18:40:09 +00:00
update-generated-device-plugin-dockerized.sh bump device plugin version to v1alpha2 to reflect the change to AllocateResponce API 2017-10-19 10:35:24 -07:00
update-generated-device-plugin.sh Added script to generate the Device Plugin API 2017-08-15 14:59:42 -07:00
update-generated-docs.sh Remove all traces of federation 2017-10-26 13:37:37 -07:00
update-generated-protobuf-dockerized.sh Add new Events API group 2017-11-22 18:40:09 +00:00
update-generated-protobuf.sh
update-generated-runtime-dockerized.sh Fixup after k8s.io/{kube-gen -> code-generator} rename 2017-08-17 17:55:12 +02:00
update-generated-runtime.sh
update-generated-swagger-docs.sh Remove all traces of federation 2017-10-26 13:37:37 -07:00
update-godep-licenses.sh Update godep-licenses script to work on darwin 2017-09-01 13:55:16 -07:00
update-gofmt.sh
update-openapi-spec.sh
update-staging-godeps-dockerized.sh Clean up godep scripts to be self-contained 2017-09-29 15:16:03 -07:00
update-staging-godeps.sh Dockerize update-staging-godeps 2017-07-25 12:26:57 -07:00
update-swagger-spec.sh
update-translations.sh
update_owners.py Remove myself from a bunch of places 2017-07-20 12:10:46 +02:00
verify-all.sh
verify-api-groups.sh Fixup after k8s.io/{kube-gen -> code-generator} rename 2017-08-17 17:55:12 +02:00
verify-api-reference-docs.sh Ignore OWNERS files in hack/verify-api-reference-docs.sh 2017-10-18 11:15:08 -07:00
verify-bazel.sh Use -proto=legacy with gazelle, and manually fix staging/ import paths 2017-10-15 18:13:56 -07:00
verify-boilerplate.sh
verify-cli-conventions.sh
verify-codegen.sh Add sample CustomResourceDefinition controller 2017-10-19 00:21:57 +01:00
verify-description.sh pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
verify-flags-underscore.py some small fix in verify-flags-underscore 2017-08-14 14:55:42 +08:00
verify-generated-device-plugin.sh bump device plugin version to v1alpha2 to reflect the change to AllocateResponce API 2017-10-19 10:35:24 -07:00
verify-generated-docs.sh Remove all traces of federation 2017-10-26 13:37:37 -07:00
verify-generated-files-remake.sh Add debugging to the codegen process 2017-08-25 14:08:42 -07:00
verify-generated-protobuf.sh Remove packages which aren't relied on by heapster anymore. 2017-08-12 23:50:22 +08:00
verify-generated-runtime.sh
verify-generated-swagger-docs.sh Ignore .import-restrictions when checking against generated docs 2017-10-13 07:09:38 -04:00
verify-godep-licenses.sh
verify-godeps.sh Target godep script change verifications 2017-08-09 22:34:13 -04:00
verify-gofmt.sh
verify-golint.sh
verify-govet.sh
verify-import-boss.sh Fixup after k8s.io/{kube-gen -> code-generator} rename 2017-08-17 17:55:12 +02:00
verify-imports.sh import-verifier: use yaml for inline comments 2017-10-25 16:53:26 +02:00
verify-linkcheck.sh
verify-no-vendor-cycles.sh Bugfix: verify-no-vendor-cycles.sh detects wrong cycles 2017-08-01 21:09:53 -07:00
verify-openapi-spec.sh
verify-pkg-names.sh remove reference to v1alpha1 2017-11-21 13:00:40 -08:00
verify-readonly-packages.sh
verify-staging-godeps.sh Don't clobber KUBE_VERBOSE in verify script 2017-11-10 12:42:15 -08:00
verify-swagger-spec.sh
verify-symbols.sh
verify-test-images.sh
verify-test-owners.sh