Commit Graph

56 Commits (8621326a7a542605cb958a61c37b27fa80f6d12c)

Author SHA1 Message Date
k8s-merge-robot 0e28a01661 Merge pull request #26439 from aanm/adding-g-curl-option
Automatic merge from submit-queue

Add -g curl option to hack/lib/util.sh wait_for_url

Add `-g` curl option

```
This  option  switches  off  the "URL globbing parser". When you set this option,
you can specify URLs that contain the letters {}[] without having them being
interpreted by curl itself. Note that these letters are not normal legal URL
contents but they should be encoded according to the URI standard.
```

> Why?

So that IPv6 addresses with `[` and `]`, like `[::1]:8080`, work with that script.

Signed-off-by: André Martins <aanm90@gmail.com>
2016-06-25 05:59:09 -07:00
Daniel Smith 8faa88626d Revamp doc generation
Auto generated docs are **NO LONGER CHECKED IN**, only placeholders.

To generate them, e.g. before exporting docs, run hack/generate-docs.sh.

hack/verify-generated-docs.sh ensures that generated docs are merely the
placeholder text.

hack/update-generated-docs.sh puts the placeholder text in the proper
places.

The old munge behavior is moved into hack/{update|verify}-munge-docs.sh.
2016-06-08 17:22:12 -07:00
Dr. Stefan Schimanski a79a420fde Move shell completion generation into 'kubectl completion' command 2016-05-30 07:23:36 +02:00
David McMahon 12edc97862 Verify changes against upstream vendor/ as well. 2016-05-27 16:27:42 -07:00
André Martins 8497255bcd Add -g curl option to hack/lib/util.sh wait_for_url
Signed-off-by: André Martins <aanm90@gmail.com>
2016-05-27 20:50:38 +01:00
nikhiljindal f98bda0b47 Adding a tool to generate federation docs 2016-05-25 15:04:20 -07:00
k8s-merge-robot 88daa2efde Merge pull request #25611 from soltysh/remote_check
Automatic merge from submit-queue

Update upstream remote regex

I've fixed the upstream remote regex so that it properly recognizes ssh link, like this one: 
```
upstream git@github.com:kubernetes/kubernetes.git (fetch)
``` 

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-21 01:34:10 -07:00
Lucas Käldström 8e64b5f347 Speed up hack/local-up-cluster.sh by building hyperkube instead of separate binaries. Also add arm64 as a valid arch 2016-05-15 16:38:11 +03:00
Maciej Szulik c283103602 Update upstream remote regex 2016-05-14 09:48:14 +02:00
Tim Hockin 9a83015e60 Fix path munging funcs and usage
Our `realpath` and `readlink -f` functions (required only because of MacOS,
thanks Steve) were poor substitutes at best.  Mostly they were downright
broken.  This thoroughly overhauls them and adds a test (in comments, since we
don't seem to have shell tests).  For all the interesting cases I could think
of, the fakes act just like the real thing.

Then use those and canonicalize KUBE_ROOT.  In order to make recursive calls of
our shell tool not additively grow `pwd` we have to essentially make the
sourcing of init.sh idempotent.
2016-05-08 20:30:38 -07:00
Tim Hockin cbf886c7f4 Convert everything to use vendor/ 2016-05-08 20:30:37 -07:00
Thomas Liu f4f04e2985 Include genyaml in update/verify generated docs scripts 2016-04-13 15:11:31 -07:00
Jeff Grafton 457b9d365a Make has_changes_against_upstream_branch detect uncommitted changes 2016-03-14 12:59:17 -07:00
Jeff Grafton 59a91326fa Automatically determine remote upstream name.
Also add option to force Godeps verification checks on post-commit
Jenkins.
2016-03-09 16:22:28 -08:00
Seth Jennings fdc1e0b310 increase wait_for_url defaults 2016-02-22 15:32:03 -06:00
Chao Xu 6aa23e4e49 refacotr update-api-reference-docs.sh 2016-02-10 16:46:59 -08:00
Clayton Coleman c49cd4edf9 Alter the build to generate for __internal correctly 2016-01-22 01:10:22 -05:00
Jeff Grafton 62bc09adf3 Only return unprivileged ports in get_random_port and fix nc argument bug 2016-01-19 16:24:43 -08:00
Mike Danese 22cfa5ea7e build: move some of hack/lib/ into a new cluster/lib/
Some functionality in hack/lib is currently depended on by
cluster/common.sh so kube-up from the full release tar (which
does not include hack/) is currently broken. With this PR we
create cluster/lib/ and move the necessary bits from hack/
over to get kube-up working again.

Fixes: 96d1b8d1b2
Signed-off-by: Mike Danese <mikedanese@google.com>
2016-01-11 17:10:26 -08:00
Peeyush Gupta 4774e7146e Add support for ppc64le architecture. 2015-12-09 12:12:13 +05:30
gajju26 94093d9cbc Added support for IBM z Systems architecture (s390x) 2015-11-26 11:25:04 +05:30
feisky 13dce74adb Gendocs for docs/admin/kube-* 2015-10-25 19:24:23 +08:00
Jeff Grafton 4cafa3e92d Ignore _gopath in verify scripts
The _gopath directory is used in Jenkins to install extra dependencies,
and any files in it should be ignored by the various verification
scripts.
2015-10-19 14:09:23 -07:00
Dawn Chen b07e29b03c Merge pull request #14789 from JanetKuo/fix-e2e-test-flake-kubectl-proxy
Use random ports when doing kubectl proxy in testing
2015-10-12 11:46:24 -07:00
Janet Kuo 5d08dcf837 Use random ports when doing kubectl proxy in testing 2015-10-09 15:52:59 -07:00
Chao Xu cc4ec80ec7 in scripts, experimental/v1alpha1->extensions/v1beta1 2015-10-09 15:19:13 -07:00
Chao Xu d599d07bc3 simplify group-version-to-pkg-path 2015-09-24 21:33:32 -07:00
Chao Xu ae1293418b move experimental/v1 to experimental/v1alpha1;
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Eric Paris 2c9708967e Fix doc generation on Macs
The find util on macs require a path. Linux does not. So give it the
path to work on both.
2015-09-16 20:13:14 -04:00
Jeff Lowdermilk ebc0b02b7d Merge pull request #13613 from eparis/rework-doc-generation
Rework automatic doc generation
2015-09-15 17:35:47 -07:00
Eric Paris 58d6b29e97 Rework doc generation to simplify and centralize
Just do all doc generation in the hack::util::gen-docs instead of spread
around. We also only track the generated docs in a single file for the
whole tree.
2015-09-11 19:32:08 -04:00
Daniel Smith 7a0fc719fb Fix tooling for apis/experimental's new home
* fix package name
* add a script to auto-gofmt everything, useful after grep/sed incantations
* update conversion/deep copy generation
* doc update
2015-09-11 16:06:10 -07:00
Eric Paris 9cf7bb6b4f Automatically clean up KUBE_TEMP
kube::util:ensure-temp-dir claims that it will automatically clean it
up. But it obviously doesn't. Since we cannot add multiple trap in bash
add a function that lets us trap and clean up KUBE_TEMP even if someone
already set a trap.
2015-09-11 18:58:49 -04:00
Eric Paris bf9c3cd6ec Use cp instead of rsync in hack/verify-gendocs.sh
Instead of calling rsync over and over and over and over and over and
over and over and over and over (and probably over) use one `cp`

Before:
real	0m5.247s
user	0m2.294s
sys	0m1.300s

After:
real	0m2.260s
user	0m2.230s
sys	0m0.936s
2015-08-11 14:21:57 -04:00
Clayton Coleman 1a64830ef1 mktemp on OSX behaves differently than Linux
hack/test-integration and hack/test-cmd are currently broken
2015-07-30 00:41:20 -04:00
Tim Hockin 261d2ce423 Ignore whitespace when diffing generated docs 2015-07-17 15:28:58 -07:00
Daniel Smith ffcc6cadb0 run munger over examples dir 2015-07-13 17:47:48 -07:00
Daniel Smith bf77ecc3a9 Various munger changes
* Add analytics munger w/ munge heading
* More link autofixes
* Allow running a subset of munges
* Fix repo root detection
* Only process non-preformatted blocks
* Gendocs no longer adds the analytics link; mungedocs does that in a
  second pass.
2015-07-13 17:47:48 -07:00
Mike Danese 055115a109 fake realpath, and standardize treatment of trailing / of dirs in gendoc 2015-07-13 15:27:33 -07:00
Mike Danese b4514ee1f3 fix run-gendocs to point to new repo location 2015-07-13 13:01:20 -07:00
Tim Hockin 06a6623a70 Filter munges out during doc generation
This allows us to apply content-mutating munges to generated files and nothave
the verifier flag them as needing regeneration later.
2015-07-13 11:23:07 -07:00
Daniel Smith 97ebc1aad9 improve output of kube_get_url 2015-06-09 15:26:09 -07:00
Jeff Lowdermilk 553f9f822b Add ga-beacon analytics to gendocs scripts
hack/run-gendocs.sh puts ga-beacon analytics link into all md files,
hack/verify-gendocs.sh verifies presence of link.
2015-05-15 18:56:38 -07:00
Tim Hockin 8e7970f2a1 mkdir -p in doc generation 2015-05-13 12:50:25 -07:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Jeff Lowdermilk a8e2f6e9c8 Add examples for kubectl describe, and make gendocs less spammy
Makes hack/{run/verify}-gendocs.sh ignore generated-timestamp-only
changes so minor changes to kubectl don't have to touch the entire
set of md docs.
2015-04-23 14:53:10 -07:00
Xiang Li 5466dd8138 hack: reliable sort in util.sh 2015-04-14 12:52:28 -07:00
Eric Paris 26149bd83d Doc generation should remove old doc files
Right now, our doc generation scripts notice if you make changes and
don't regen docs, don't include new docs, etc.  But they miss it if your
changes should have REMOVED a doc.  Both kubectl-apiversion and
kubectl-clusterinfo should have been removed, but weren't.

This patch starts tracking all generated doc files and will cause
problems if files should be removed and aren't.
2015-04-13 17:48:24 -04:00
Eric Paris d7a89117b7 Use a helper to find built binaries
Instead of doing it all outselves....
2015-04-13 15:27:55 -04:00
Zach Loafman 2bc5dd559a Add kube::util::wait-for-jobs to report status, unlike builtin wait
** Sigh **

Fixes an additional complaint in #6463
2015-04-06 11:11:49 -07:00