Commit Graph

3054 Commits (92567e1b06dccd26df5fa43b9557beebe5dedf76)

Author SHA1 Message Date
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 527cb50583 Demand at least go1.6 2016-05-08 20:30:37 -07:00
Tim Hockin cbf886c7f4 Convert everything to use vendor/ 2016-05-08 20:30:37 -07:00
k8s-merge-robot 41b7b04faf Merge pull request #24554 from ingvagabund/dhodovska-events-flag-for-describers
Automatic merge from submit-queue

Introduce events flag for describers

Printing events for a given object is not always needed. Thus, introducing --show-events=false to ``kubectl describe`` to skip events printing.

Fixes: #24239
2016-05-08 14:41:28 -07:00
k8s-merge-robot f46f35a9df Merge pull request #23600 from mikedanese/addon-manager
Automatic merge from submit-queue

run kube-addon-manager in a static pod

Depends on https://github.com/kubernetes/kubernetes/pull/23605 and https://github.com/kubernetes/kubernetes/pull/24108

Ref #23233
2016-05-08 11:30:44 -07:00
k8s-merge-robot 8a04506546 Merge pull request #23009 from uluyol/c-pause
Automatic merge from submit-queue

Reimplement 'pause' in C - smaller footprint all around

Statically links against musl. Size of amd64 binary is 3560 bytes.

I couldn't test the arm binary since I have no hardware to test it on, though I assume we want it to work on a raspberry pi.

This PR also adds the gcc5/musl cross compiling image used to build the binaries.

@thockin
2016-05-08 09:29:32 -07:00
k8s-merge-robot f2f3b49f58 Merge pull request #22575 from MikaelCluseau/wip-issue-20466
Automatic merge from submit-queue

Add subPath to mount a child dir or file of a volumeMount

Allow users to specify a subPath in Container.volumeMounts so they can use a single volume for many mounts instead of creating many volumes. For instance, a user can now use a single PersistentVolume to store the Mysql database and the document root of an Apache server of a LAMP stack pod by mapping them to different subPaths in this single volume.

Also solves https://github.com/kubernetes/kubernetes/issues/20466.
2016-05-08 08:45:15 -07:00
Matt Liggett c00fa39eee Define PodDisruption API types. 2016-05-06 17:24:53 -07:00
Robert Bailey f0d4437fc7 Merge pull request #24769 from smarterclayton/testcmd_on_mac
Allow test-cmd to run on non-Linux OS
2016-05-06 13:54:43 -07:00
Robert Bailey 2f65d2e617 Merge pull request #24666 from smarterclayton/munge_upstream
mungedocs should not assume upstream remote
2016-05-06 13:37:35 -07:00
Robert Bailey 828b4f8240 Merge pull request #24825 from kubernetes/revert-23157-fix-tags
Revert "Always use long format in git tag."
2016-05-06 13:34:32 -07:00
Mike Danese 3e1c0b5951 run kube-addon-manager in a pod 2016-05-06 11:01:06 -07:00
k8s-merge-robot a64ef4d3df Merge pull request #25042 from wonderfly/trusty_beta_to_1_2
Automatic merge from submit-queue

Update e2e-runner.sh so it can fetch multiple types of Trusty images

Trusty beta images now work with k8s 1.2.

@spxtr, @andyzheng0831 Can you review this?
2016-05-06 04:51:57 -07:00
k8s-merge-robot 346ddc52c2 Merge pull request #24748 from Random-Liu/cleanup-with-new-engine-api
Automatic merge from submit-queue

Kubelet: Cleanup with new engine api

Finish step 2 of #23563

This PR:
1) Cleanup go-dockerclient reference in the code.
2) Bump up the engine-api version.
3) Cleanup the code with new engine-api.

Fixes #24076.
Fixes #23809.

/cc @yujuhong
2016-05-06 03:16:53 -07:00
Jan Chaloupka dd2c9c578d Introduce kubectl describe --show-events
Introduce DescriberSettings for Describer display options
Introduce --show-events flag and DescriberSettings in Describer methods
Introduce unit-tests
Regenerated kubectl describe docs
Add events flag tests to test-cmd.sh

Signed-off-by: dhodovsk@redhat.com
Signed-off-by: jchaloup@redhat.com
2016-05-06 11:40:11 +02:00
Kevin 82ba4f077e implement inter pod topological affinity and anti-affinity 2016-05-06 06:46:23 +00:00
Wojciech Tyczynski 28a8a23471 Merge pull request #25240 from thockin/fix-codecgen-sort
Fix codecgen sort
2016-05-06 08:28:51 +02:00
k8s-merge-robot 9a1b2540b0 Merge pull request #24739 from zmerlynn/1000nodes
Automatic merge from submit-queue

Jenkins: Clean up even if we can't bring cluster up

We're gathering all the cluster logs, go ahead and clean up the
resources.
2016-05-05 23:16:41 -07:00
Mikaël Cluseau 06900a934d Introduce subPath in VolumeMount 2016-05-06 15:08:41 +11:00
Tim Hockin 24f9beb1ff remove DBG and old code 2016-05-05 20:11:16 -07:00
Tim Hockin 457b27d25f Fix codecgen sort 2016-05-05 20:10:38 -07:00
k8s-merge-robot ab36e0e35e Merge pull request #24710 from smarterclayton/store_proto_in_etcd
Automatic merge from submit-queue

Allow etcd to store protobuf objects

Split storage serialization from client negotiation, and allow API server to take flag controlling serialization.

TODO:

* [x] API server still doesn't start - range allocation object doesn't seem to round trip correctly to etcd
* [ ] Verify that third party resources are ignoring protobuf (add a test)
* [ ] Add integration tests that verify storage is correctly protobuf
* [ ] Add a global default for which storage format to prefer?
2016-05-05 19:00:20 -07:00
k8s-merge-robot ba7dc5e6e6 Merge pull request #25118 from ixdy/dockerized-e2e
Automatic merge from submit-queue

Map secret files into dockerized e2e

Rather than copying the GCE and AWS private keys/credentials to each Jenkins VM, we can put them in credentials and map them through.

This is one half of the change; if the relevant environment variables are set, we'll mount the files in.

cc @fejta @rmmh @apelisse
2016-05-05 16:52:05 -07:00
Clayton Coleman e0ebcf4216
Split the storage and negotiation parts of Codecs
The codec factory should support two distinct interfaces - negotiating
for a serializer with a client, vs reading or writing data to a storage
form (etcd, disk, etc). Make the EncodeForVersion and DecodeToVersion
methods only take Encoder and Decoder, and slight refactoring elsewhere.

In the storage factory, use a content type to control what serializer to
pick, and use the universal deserializer. This ensures that storage can
read JSON (which might be from older objects) while only writing
protobuf. Add exceptions for those resources that may not be able to
write to protobuf (specifically third party resources, but potentially
others in the future).
2016-05-05 12:08:23 -04:00
Piotr Szczesniak caa96f4cf3 Merge pull request #25133 from jayunit100/c2fix
flake fix for cassandra:cassandra
2016-05-05 10:00:00 +02:00
Muhammed Uluyol f3690e2d5e
build/pause: write in C
Builds statically against glibc. References to the old pause
image have been updated.
2016-05-04 21:45:52 -04:00
jay vyas 7a824aaf49 Cassandra de-flake 2016-05-04 21:11:56 -04:00
k8s-merge-robot 83c121e921 Merge pull request #25108 from lavalamp/master
Automatic merge from submit-queue

Fix verify codecgen

Fixes #25103.
2016-05-04 14:44:16 -07:00
Daniel Smith 8ac89346db Fix codecgen
* Make verify call update
* Make update's topological sort not confused about the "io" package
2016-05-04 13:01:43 -07:00
Jeff Grafton 6a0c152476 Map secret files into dockerized e2e 2016-05-04 12:29:04 -07:00
k8s-merge-robot bacb12a112 Merge pull request #25001 from gmarek/jenkins
Automatic merge from submit-queue

Default KUBEMARK_TEST_ARGS
2016-05-04 10:16:40 -07:00
k8s-merge-robot 1642083e60 Merge pull request #24645 from jlowdermilk/rolling-update
Automatic merge from submit-queue

kubectl rolling-update support for same image

Fixes #23497.

Enables `kubectl rolling-update --image` to the same image, adding a `--image-pull-policy` flag to remove ambiguity. This allows rolling-update to behave as an "update and/or restart" (https://github.com/kubernetes/kubernetes/issues/23497#issuecomment-212349730), or as a forced update when the same tag can mean multiple versions (e.g. `:latest`). cc @janetkuo @nikhiljindal
2016-05-04 07:24:22 -07:00
k8s-merge-robot 43b644ea6f Merge pull request #24998 from spxtr/remove-test-history
Automatic merge from submit-queue

Move test-history code into the test-infra repository.

~~Waiting on https://github.com/kubernetes/test-infra/pull/3~~ ready to go
2016-05-03 17:41:24 -07:00
k8s-merge-robot cfd7a99fe3 Merge pull request #25046 from dlorenc/boilerplate
Automatic merge from submit-queue

Add several arguments to boilerplate.py

This commit makes the root directory and boilerplate content directory configurable.

The defaults have remained the same, so no behavior changes should be expected.

cc @eparis 
ref https://github.com/kubernetes/minikube/pull/37
2016-05-03 11:26:29 -07:00
k8s-merge-robot f29d597d02 Merge pull request #25052 from ixdy/build-image-name-in-docker
Automatic merge from submit-queue

Use HOSTNAME in Docker build image tag hash

Fixes #24661 by including `$HOSTNAME` when generating the build image tag hash.

When running the verification checks under Docker, the `$KUBE_ROOT` will be identical across builds, so tags will collide unless we add additional uniqueness. By default, the hostname inside a Docker container is its ID, which should be unique enough for us.

I also deleted a misleading error message from the same check.

@kubernetes/sig-testing
2016-05-03 02:00:52 -07:00
dlorenc bc9877be3e Make flags hyphenated instead of using underscores. 2016-05-02 21:45:09 -07:00
dlorenc e1c5791631 Add several arguments to boilerplate.py
This commit makes the root directory, boilerplate content directory and
the directories to skip configurable.

The defaults have remained the same, so no behavior changes should be expected.
2016-05-02 21:45:04 -07:00
Jeff Grafton 83ac3ea0c9 Make comment explain why we need sudo
Also make the check more correct and quieter.
2016-05-02 16:25:03 -07:00
Jeff Grafton 0f041382ee Use HOSTNAME in Docker build image tag hash
Additionally, use REPO_DIR in update-generated-protobuf, since this
should be more unique (when set).
2016-05-02 16:03:27 -07:00
Joe Finney 3da5c69307 Move test history into the test-infra repo. 2016-05-02 15:31:00 -07:00
Daniel Wang f355222060 e2e-runner.sh: Ability to fetch multiple types of Trusty images 2016-05-02 15:20:19 -07:00
Joe Finney 60d50d7253 Update Jenkins README to point to test-infra. 2016-05-02 13:43:35 -07:00
Joe Finney df832d15ce Remove Jenkins Job Builder scripts and configs. 2016-05-02 13:43:35 -07:00
k8s-merge-robot 708c1a5c95 Merge pull request #24636 from ixdy/dockerized-e2e
Automatic merge from submit-queue

Run Kubemark builds inside Docker

Since Docker-in-Docker is tricky to get right (esp. wrt volume mounts), I'm only enabling it when necessary for a build (e.g. for kubemark).

cc @spxtr @fejta @wojtek-t
2016-05-02 13:16:18 -07:00
k8s-merge-robot f500194d92 Merge pull request #23673 from metral/multiple-resources
Automatic merge from submit-queue

allow kubectl subcmds to process multiple resources

~~autoscale, expose & patch~~ Many kubectl subcommands were limited to processing one resource at a time.

This PR allows those subcommands to process multiple resources.

This PR is in reference to https://github.com/kubernetes/kubernetes/pull/23116#issuecomment-202360784 by @deads2k
2016-05-02 07:09:44 -07:00
k8s-merge-robot c6157a2356 Merge pull request #24266 from spxtr/1.6.1
Automatic merge from submit-queue

Up to go 1.6.2 for build and test.

~~1.6.1 contains some security fixes. 1.6.2 should be out soon.~~ 1.6.2 is out :D

Images aren't pushed yet.
2016-05-02 05:23:16 -07:00
k8s-merge-robot 66730c53c5 Merge pull request #24445 from vishh/framework-node-e2e
Automatic merge from submit-queue

Framework support for node e2e.

This should let us port existing e2e tests to the node e2e suite, if the tests are node specific.
2016-05-02 02:17:48 -07:00
k8s-merge-robot 8fba6de835 Merge pull request #24117 from XiaoningDing/federation-client
Automatic merge from submit-queue

Federation client for cluster

generate v1alpha1 and unversioned client for federation/clusters

#23653, requires #23847, #23998

@nikhiljindal @quinton-hoole @caesarxuchao
2016-05-02 01:41:08 -07:00
Mike Metral 999c8e211e allow kubectl subcmds to process multiple resources
- use resource.Visit() to recursively process resources, as well as, aggregate
errors where possible
2016-05-01 20:27:37 -07:00
gmarek 07f1b2f4c5 Default KUBEMARK_TEST_ARGS 2016-04-30 01:33:10 +02:00