- 24 May, 2016 19 commits
-
-
Quintin Lee authored
-
Wojciech Tyczynski authored
Log requests to GCE
-
Wojciech Tyczynski authored
-
k8s-merge-robot authored
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?)
-
k8s-merge-robot authored
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
-
Wojciech Tyczynski authored
Fix GCI after #26109 breakage
-
Wojciech Tyczynski authored
-
Filip Grzadkowski authored
Refactor scheduler to expose predicates to cluster autoscaler
-
Wojciech Tyczynski authored
Avoid dumping all information in large clusters
-
Wojciech Tyczynski authored
-
Wojciech Tyczynski authored
GCE provider: Rate limit all API calls
-
Filip Grzadkowski authored
-
k8s-merge-robot authored
Automatic merge from submit-queue Add pre-condition before editing pod in test-cmd.sh Ref #25925 []()
-
Zach Loafman authored
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)
-
Wojciech Tyczynski authored
Fixing heapster memory requirements.
-
k8s-merge-robot authored
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.
-
k8s-merge-robot authored
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
-
Jordan Liggitt authored
Add OldObject to admission attributes Update resthandler Patch/Update admission plumbing
-
Mike Danese authored
Move PD tests to flaky suite.
-
- 23 May, 2016 21 commits
-
-
k8s-merge-robot authored
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
-
Janet Kuo authored
-
Quintin Lee authored
-
k8s-merge-robot authored
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.
-
k8s-merge-robot authored
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
-
Joe Finney authored
-
Paul Morie authored
-
Mike Danese authored
Revert "Revert "Add support for running GCI on the GCE cloud provider""
-
k8s-merge-robot authored
Automatic merge from submit-queue Seccomp Proposal WIP proposal to address #20870 @kubernetes/kube-api @kubernetes/sig-node <!-- Reviewable:start --> --- This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24602) <!-- Reviewable:end -->
-
k8s-merge-robot authored
Automatic merge from submit-queue Handle federated service name lookups in kube-dns. For the domain name queries that fail to match any records in the local kube-dns cache, we check if the queried name matches the federation pattern. If it does, we send a CNAME response to the federated name. For more details look at the comments in the code. Tests are coming ... Also, this PR is based on @ArtfulCoder's PR #23930. So please review only the last commit here. PTAL @ArtfulCoder @thockin @quinton-hoole @nikhiljindal []()
-
gmarek authored
-
Piotr Szczesniak authored
Fix govet error in reflect_resync test
-
Wojciech Tyczynski authored
-
Piotr Szczesniak authored
Fix reflector test
-
Wojciech Tyczynski authored
-
Wojciech Tyczynski authored
-
k8s-merge-robot authored
Automatic merge from submit-queue Add few log lines to NodeController
-
Andy Zheng authored
-
Andy Zheng authored
-
Andy Zheng authored
-
Andy Zheng authored
This reverts commit 40f53b17.
-