Commit Graph

29755 Commits

Author SHA1 Message Date
Avesh Agarwal
1931931494 Downward API implementation for resources limits and requests 2016-05-24 12:22:35 -04:00
Wojciech Tyczynski
55fdc1c036 Log requests to GCE 2016-05-24 18:14:37 +02:00
k8s-merge-robot
5303794ef0 Merge pull request #25787 from liggitt/update-admission
Automatic merge from submit-queue

plumb Update resthandler to allow old/new comparisons in admission

Rework how updated objects are passed to rest storage Update methods (first pass at https://github.com/kubernetes/kubernetes/pull/23928#discussion_r61444342)

* allows centralizing precondition checks (uid and resourceVersion)
* allows admission to have the old and new objects on patch/update operations (sets us up for field level authorization, differential quota updates, etc)
* allows patch operations to avoid double-GETting the object to apply the patch

Overview of important changes:
* pkg/api/rest/rest.go
  * changes `rest.Update` interface to give rest storage an `UpdatedObjectInfo` interface instead of the object directly. To get the updated object, the storage must call `UpdatedObject()`, passing in the current object
* pkg/api/rest/update.go
  * provides a default `UpdatedObjectInfo` impl
  * passes a copy of the updated object through any provided transforming functions and returns it when asked
  * builds UID preconditions from the updated object if they can be extracted
* pkg/apiserver/resthandler.go
  * Reworks update and patch operations to give old objects to admission
* pkg/registry/generic/registry/store.go
  * Calls `UpdatedObject()` inside `GuaranteedUpdate` so it can provide the old object

Todo:
- [x] Update rest.Update interface:
  * Given the name of the object being updated
  * To get the updated object data, the rest storage must pass the current object (fetched using the name) to an `UpdatedObject(ctx, oldObject) (newObject, error)` func. This is typically done inside a `GuaranteedUpdate` call.
- [x] Add old object to admission attributes interface
- [x] Update resthandler Update to move admission into the UpdatedObject() call
- [x] Update resthandler Patch to move the patch application and admission into the UpdatedObject() call
- [x] Add resttest tests to make sure oldObj is correctly passed to UpdatedObject(), and errors propagate back up

Follow-up:
* populate oldObject in admission for delete operations?
* update quota plugin to use `GetOldObject()` in admission attributes
* admission plugin to gate ownerReference modification on delete permission
* Decide how to handle preconditions (does that belong in the storage layer or in the resthander layer?)
2016-05-24 08:41:31 -07:00
k8s-merge-robot
04d6162e0f Merge pull request #26071 from gmarek/kube-up
Automatic merge from submit-queue

Make node-instance-group base names unique to prevent collisions

We create multiple IGMs for >1000 Node clusters. When we have a conflict on base name IGMs will fight over ownership of the VM that happen to have the name belonging to multiple IGMs.

This change will increase reliability of starting big clusters.

cc @wojtek-t @alex-mohr @roberthbailey @mikedanese
2016-05-24 07:31:22 -07:00
Huamin Chen
56719f83b7 when kubectl exec fails to find the container to run a command, it should retry
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-05-24 14:18:44 +00:00
xiangpengzhao
3caebba6d8 Add assert.NotNil for test case 2016-05-24 10:04:36 -04:00
Wojciech Tyczynski
01e79b88e1 Merge pull request #26159 from wojtek-t/fix_gci
Fix GCI after #26109 breakage
2016-05-24 14:47:55 +02:00
Wojciech Tyczynski
e515da4545 Fix GCI after #26109 breakage 2016-05-24 14:12:30 +02:00
gmarek
049d7f6c50 Remove unused POLL_SLEEP_INTERVAL 2016-05-24 13:34:03 +02:00
gmarek
cafbdba7d9 Change base64 -d flag to --decode flag to make it BSD compatible 2016-05-24 13:24:55 +02:00
Dr. Stefan Schimanski
d3f8eaba7f Use framework.podStartTimeout for kubectl test pod launch 2016-05-24 13:10:56 +02:00
Filip Grzadkowski
1ab5fc4392 Merge pull request #26069 from fgrzadkowski/unschedulable_pod
Refactor scheduler to expose predicates to cluster autoscaler
2016-05-24 12:01:32 +02:00
Wojciech Tyczynski
316103875e Merge pull request #26146 from wojtek-t/avoid_dumb_logs
Avoid dumping all information in large clusters
2016-05-24 11:20:08 +02:00
Wojciech Tyczynski
37261cc270 Fix transient flannel etcd 2016-05-24 11:15:16 +02:00
Wojciech Tyczynski
bd920de4a4 Avoid dumping all information in large clusters 2016-05-24 10:23:42 +02:00
Dmitry Shulyak
4a60d3ce60 Sort revisions in rollout history as integers
Previously keys were sorted as strings, thus it was possible
to see such order as 1, 10, 2, 3, 4, 5.

Ints64 helper implemented in util/slice module to sort []int64
2016-05-24 10:04:05 +02:00
nikhiljindal
dca310aa88 Updating tests 2016-05-24 00:27:39 -07:00
Wojciech Tyczynski
e58788be6d Merge pull request #26140 from zmerlynn/rate-limit-everything
GCE provider: Rate limit all API calls
2016-05-24 09:25:52 +02:00
Filip Grzadkowski
55a1c826bb Refactor scheduler to expose predicates to cluster autoscaler 2016-05-24 09:04:31 +02:00
Dr. Stefan Schimanski
9e95606cf5 Do not show command twice in e2e kubectl exec 2016-05-24 09:00:40 +02:00
k8s-merge-robot
ac3b315881 Merge pull request #26115 from janetkuo/edit-pod-flake
Automatic merge from submit-queue

Add pre-condition before editing pod in test-cmd.sh

Ref #25925

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-23 23:48:26 -07:00
Zach Loafman
9b5cdfb705 GCE provider: Rate limit all API calls
Instead of just rate limits to operation polling, send all API calls
through a rate limited RoundTripper.

This isn't a perfect solution, since the QPS is obviously getting
split between different controllers, etc., but it's also spread across
different APIs, which, in practice, rate limit differently.

Fixes #26119 (hopefully)
2016-05-23 23:23:53 -07:00
Wojciech Tyczynski
307767ec7c Merge pull request #26109 from Q-Lee/addon-resizer
Fixing heapster memory requirements.
2016-05-24 08:17:49 +02:00
k8s-merge-robot
a68fc248d3 Merge pull request #19872 from nagarjung/kube_tarball
Automatic merge from submit-queue

Add kubernetes.tar.gz to .gitignore

This patch avoids adding kubernetes.tar.gz to git staging as it gets downloaded during get-kube.sh script.
2016-05-23 22:57:12 -07:00
nikhiljindal
9b604242c6 Updating the federation cluster controller to use secretRef to contact the server 2016-05-23 21:50:00 -07:00
nikhiljindal
236eb42664 Updating generated code 2016-05-23 21:50:00 -07:00
nikhiljindal
57ea89a512 Replacing string Credentials by SecretRef in API 2016-05-23 21:49:59 -07:00
k8s-merge-robot
2dbda8c705 Merge pull request #25990 from caesarxuchao/remove-configmap-ex
Automatic merge from submit-queue

remove ConfigMap example from GC proposal

We need more thoughts on the design. Remove it to avoid causing confusion.

@derekwaynecarr  @lavalamp
2016-05-23 21:02:33 -07:00
Tim Hockin
29c78e20cf Convert the font (ubuntu) to paths in SVG 2016-05-23 18:38:45 -07:00
Jordan Liggitt
29252acd1a Change rest storage Update interface to retrieve updated object
Add OldObject to admission attributes

Update resthandler Patch/Update admission plumbing
2016-05-23 21:09:26 -04:00
Mike Danese
1e97583f01 Merge pull request #26089 from spxtr/flakyflaky
Move PD tests to flaky suite.
2016-05-23 17:20:36 -07:00
Brendan Burns
88663fc58b Add some extra checking in the tests to prevent flakes. 2016-05-23 16:25:02 -07:00
Yu-Ju Hong
77dba962db docker: don't set timeout for image pulling requests 2016-05-23 16:17:49 -07:00
k8s-merge-robot
bf0a5e9fac Merge pull request #25413 from pmorie/storage-proposal
Automatic merge from submit-queue

Proposal: persistent volume selector

Partially replaces #17056.  Another proposal will follow dealing with dynamic provisioning on top of storage classes.

@kubernetes/sig-storage
2016-05-23 15:21:05 -07:00
Janet Kuo
89df549016 Add pre-condition before editing pod in test-cmd.sh 2016-05-23 15:04:43 -07:00
Abhishek Shah
fcba7c3e5f added dns-port flag to have a custom DNS port for skydns to serve DNS requests on. updated imports 2016-05-23 14:54:00 -07:00
Abitha Palaniappan
66f9cd82a7 Adding vSphere volume validation in api 2016-05-23 14:39:09 -07:00
Quintin Lee
81ee3e2d30 Fixing heapster memory requirements. 2016-05-23 14:25:55 -07:00
Michael Rubin
fdf43b12d4 Removing unreferenced code github/com/emicklei
The code in pkg github.com/emicklei/examples/ is not referenced in kubernetes
codebase. Somehow it was mirrored in the vendor directory in a previous
PR #25365.

This causes problems for godeps which will then include the reference to this
code in the Godeps.json file (among other packages that are not in the vendors
directory).

Removing the directory and its contents fixes the fissue and we believe the
current godeps process should prevent it from re-occurring.
2016-05-23 14:05:09 -07:00
Euan Kemp
136da158c5 rkt: Support alternate stage1's via annotation
This provides a basic implementation for setting a stage1 on a per-pod
basis via an annotation.

It's possible this feature should be gated behind additional knobs, such
as a kubelet flag to filter allowed stage1s, or a check akin to what
priviliged gets in the apiserver.
Currently, it checks `AllowPrivileged`, as a means to let people disable
this feature, though overloading it as stage1 and privileged isn't
ideal.
2016-05-23 13:47:16 -07:00
Euan Kemp
dc236d926d rkt: Add VolumeGetter mock 2016-05-23 13:43:55 -07:00
k8s-merge-robot
51e308412b Merge pull request #26061 from wojtek-t/dont_dump_failure_logs
Automatic merge from submit-queue

Don't dump everything in kubemarks

Don't dump all events etc. in kubemark failures, those are useless anyway with that amount of data.
2016-05-23 13:19:55 -07:00
k8s-merge-robot
adf44ea190 Merge pull request #26025 from liggitt/auth-test-flake
Automatic merge from submit-queue

Fix panic in auth test failure

I got a spurious failure in the webhook integration test, but couldn't see the error returned because a panic was hit that assumed a body was always returned with the response
2016-05-23 13:19:49 -07:00
Prashanth B
730555b09b Add an e2e image puller static pod 2016-05-23 19:17:09 +00:00
Michael Rubin
7900d0897d Adding "Pass/Fail" echo 2016-05-23 12:03:56 -07:00
derekwaynecarr
5a8851d436 Fix container detection on systemd in kubelet 2016-05-23 14:22:32 -04:00
Tim St. Clair
237f90d6ee Bump cAdvisor (and dependencies) godeps version 2016-05-23 10:48:56 -07:00
Joe Finney
71037b26a1 Move PD tests to flaky suite. 2016-05-23 10:47:49 -07:00
Paul Morie
3134efb4c8 Proposal: label selectors for persistent volumes 2016-05-23 13:31:39 -04:00
Mike Danese
4215fe57a5 Merge pull request #25927 from andyzheng0831/real-gci-fixed
Revert "Revert "Add support for running GCI on the GCE cloud provider""
2016-05-23 10:14:44 -07:00