Commit Graph

35462 Commits

Author SHA1 Message Date
Kubernetes Submit Queue
ba3ab80b09 Merge pull request #32060 from lojies/addaliasdeploy
Automatic merge from submit-queue

add alias deploy for deployment

deploy is also alias of deployment. add alias deploy for deployment so the help can see deploy in the Aliases like below:
```sh
k8s@k8s-node1:~/go/workspace/src/k8s.io/kubernetes/cmd/kubectl$ ./kubectl create dep -h
Create a deployment with the specified name.

Aliases:
deployment, dep, deploy
```
2016-09-13 00:29:31 -07:00
Marek Grabowski
a4431cf553 Merge pull request #32556 from kubernetes/revert-31804-shim_test2
Revert "dockershim: add unit tests for sandbox/container status"
2016-09-13 09:11:15 +02:00
Wojciech Tyczynski
3a0112f6ee Revert "dockershim: add unit tests for sandbox/container status" 2016-09-13 09:01:19 +02:00
Kubernetes Submit Queue
8f2f836e4e Merge pull request #32106 from jellonek/fd_leaks
Automatic merge from submit-queue

Ensure that we are closing files.

**What this PR does / why we need it**: In several places we are leaking file descriptors. This could be problematic on systems with low ulimits for them.

**Release note**:
```release-note
```
2016-09-12 23:43:38 -07:00
Kubernetes Submit Queue
a44d2f8009 Merge pull request #32243 from caesarxuchao/generate-1-5-clientset
Automatic merge from submit-queue

Generate 1 5 clientset

Generate the 1.5 clientset. Stop updating 1.4 clientset. Remove 1.2 clientset.

@nikhiljindal @lavalamp 

I will rebase #31994 atop of this one.
2016-09-12 23:04:50 -07:00
Kubernetes Submit Queue
ff1a92fa03 Merge pull request #32410 from euank/revert-rktshim-image-service
Automatic merge from submit-queue

Revert "Merge pull request #30513 from tmrts/kubelet-rkt-cri/use-imag…

This reverts commit aff7dfcaab, reversing
changes made to 7a4d81ea43.

See https://github.com/kubernetes/kubernetes/pull/30513#issuecomment-245949664, this breaks tests for the rkt runtime.

The original PR also changed the source of image truth from the api-service to cli, which could have further implications which @yifan-gu could speak better to, so I think it's safer to just revert for now and discuss further in the rktlet repo / pr. The reverted code effectively already exists (with the bug in question already fixed) here https://github.com/kubernetes-incubator/rktlet/pull/5 .. once that's merged, we can vendor and call it over here in place of #30513.

@yifan-gu / @tmrts  if you think continuing with the changes and rolling forwards (just adding the `--full` flag to list to fix the immediate bug) is better, feel free to close this and open a PR with that change, but I think this approach is overall better for the reasons in the previous paragraph.

cc @tmrts @yifan-gu @kubernetes/sig-rktnetes @pskrzyns
2016-09-12 22:26:34 -07:00
Kubernetes Submit Queue
c39f5681b7 Merge pull request #32316 from deads2k/client-05-remaining-clients
Automatic merge from submit-queue

remove the rest of the non-generated clients from the kubectl code

Die `Client` Die!

It's always bigger than you think.  Last bit @kargakis after this, it's gone.
2016-09-12 21:45:16 -07:00
Kubernetes Submit Queue
07ebba8fd3 Merge pull request #32521 from kubernetes/revert-32420-e2e-teardown-on-up
Automatic merge from submit-queue

Revert "e2e: only tear down existing cluster if it exists"

Reverts kubernetes/kubernetes#32420

This broke more things. We're going to backport the `|| true` fix to 1.2 -- doing just enough maintenance on old branches to keep upgrades working with new infra changes.
2016-09-12 21:06:28 -07:00
Kubernetes Submit Queue
0ca6506850 Merge pull request #32250 from coufon/increase_qps
Automatic merge from submit-queue

Add node e2e density test using 60 QPS for benchmark

This PR adds a new benchmark node e2e density test which sets Kubelet API QPS limit from default 5 to 60, through ConfigMap. 

The latency caused by API QPS limit is as large as ~30% when creating a large batch of pods (e.g. 105). It makes the pod startup latency, as well creation throughput underestimated. This test helps us to know the real performance of Kubelet core.
2016-09-12 20:27:11 -07:00
Kubernetes Submit Queue
2dc4c26f76 Merge pull request #32330 from euank/e2e-kern-log
Automatic merge from submit-queue

e2e/log-dump: Collect kernel log with journald

Related to #31928

The kern.log file does not exist on journald distros typically.

cc @vishh @Random-Liu
2016-09-12 19:47:23 -07:00
Kubernetes Submit Queue
c1f47581fa Merge pull request #32524 from derekwaynecarr/ns-controller-finalizer
Automatic merge from submit-queue

Namespace Controller handles items with finalizers gracefully

This PR does the following:

1. ensures the "orphan" finalizer is not added to items during DELETE COLLECTION calls
2. does not treat presence of a finalizer as an unexpected error condition.

The 15s wait should only happen when finalizers not added by GC are used.

I am aware of any finalizer like that at this time.

Fixes https://github.com/kubernetes/kubernetes/issues/32519
2016-09-12 19:07:06 -07:00
Kubernetes Submit Queue
523fa24659 Merge pull request #31102 from sttts/sttts-podclient-doc
Automatic merge from submit-queue

Add some docs about the missing node e2e scheduling
2016-09-12 18:26:49 -07:00
Kubernetes Submit Queue
a842608c36 Merge pull request #32514 from mtaufen/emergency-fix-memevict
Automatic merge from submit-queue

Fix memory eviction test parameters!

The parameters currently in master should NOT have come through in b9f0bd95. Must have happened when I squashed. Apologies.
2016-09-12 18:26:43 -07:00
Kubernetes Submit Queue
51b5ff59b9 Merge pull request #32210 from deads2k/controller-01-cachewait-handle
Automatic merge from submit-queue

update error handling for daemoncontroller

Updates the DaemonSet controller to cleanly requeue with ratelimiting on errors, make use of the `utilruntime.HandleError` consistently, and wait for preconditions before doing work.

@ncdc @liggitt @sttts My plan is to use this one as an example of how to handle requeuing, preconditions, and processing error handling.
@foxish fyi

related to https://github.com/kubernetes/kubernetes/issues/30629
2016-09-12 17:13:19 -07:00
David McMahon
71af33120a Update CHANGELOG.md for v1.3.7. 2016-09-12 16:45:13 -07:00
Kubernetes Submit Queue
6a9a93d469 Merge pull request #32242 from jingxu97/bug-wrongvolume-9-2
Automatic merge from submit-queue

Fix race condition in updating attached volume between master and node

This PR tries to fix issue #29324. The cause of this issue is that a race
condition happens when marking volumes as attached for node status. This
PR tries to clean up the logic of when and where to mark volumes as
attached/detached. Basically the workflow as follows,
1. When volume is attached sucessfully, the volume and node info is
added into nodesToUpdateStatusFor to mark the volume as attached to the
node.
2. When detach request comes in, it will check whether it is safe to
detach now. If the check passes, remove the volume from volumesToReportAsAttached
to indicate the volume is no longer considered as attached now.
Afterwards, reconciler tries to update node status and trigger detach
operation. If any of these operation fails, the volume is added back to
the volumesToReportAsAttached list showing that it is still attached.

These steps should make sure that kubelet get the right (might be
outdated) information about which volume is attached or not. It also
garantees that if detach operation is pending, kubelet should not
trigger any mount operations.
2016-09-12 15:29:38 -07:00
Kubernetes Submit Queue
32a32962ee Merge pull request #31564 from ericchiang/update-go-oidc
Automatic merge from submit-queue

vendor: update github.com/coreos/go-oidc client package

This change updates the github.com/coreos/go-oidc package to it's latest commit
(since we don't version that package).

Notable changes:

- Throw out JWTs with invalid claims early (coreos/go-oidc#97, brougt up in #30457)
- Remove the capnslog dependency (coreos/go-oidc#95)
- Support for Azure AD oddities (coreos/go-oidc#87)

cc @kubernetes/sig-auth
2016-09-12 14:43:43 -07:00
derekwaynecarr
80d8c330e6 Namespace controller does not treat objects with finalizers as an error condition 2016-09-12 17:30:00 -04:00
Kubernetes Submit Queue
d66fde7e4f Merge pull request #31804 from yujuhong/shim_test2
Automatic merge from submit-queue

dockershim: add unit tests for sandbox/container status

Part of #31459
2016-09-12 14:04:51 -07:00
Kubernetes Submit Queue
6a739aae29 Merge pull request #32515 from nikhiljindal/fixFedRSTest
Automatic merge from submit-queue

federation e2e: Initialising cluster var before using it

Fixing https://github.com/kubernetes/kubernetes/pull/31904#discussion_r78433657

cc @jianhuiz @kubernetes/sig-cluster-federation
2016-09-12 14:04:46 -07:00
Ryan Hitchman
4acebfc243 Revert "e2e: only tear down existing cluster if it exists" 2016-09-12 13:53:35 -07:00
Jing Xu
efaceb28cc Fix race condition in updating attached volume between master and node
This PR tries to fix issue #29324. This cause of this issue is a race
condition happens when marking volumes as attached for node status. This
PR tries to clean up the logic of when and where to mark volumes as
attached/detached. Basically the workflow as follows,
1. When volume is attached sucessfully, the volume and node info is
added into nodesToUpdateStatusFor to mark the volume as attached to the
node.
2. When detach request comes in, it will check whether it is safe to
detach now. If the check passes, remove the volume from volumesToReportAsAttached
to indicate the volume is no longer considered as attached now.
Afterwards, reconciler tries to update node status and trigger detach
operation. If any of these operation fails, the volume is added back to
the volumesToReportAsAttached list showing that it is still attached.

These steps should make sure that kubelet get the right (might be
outdated) information about which volume is attached or not. It also
garantees that if detach operation is pending, kubelet should not
trigger any mount operations.
2016-09-12 13:51:08 -07:00
Yu-Ju Hong
0075e9dbee dockershim: add unit tests for sandbox/container status
Also add a fake clock in the FakeDockerClient to allow testing container
CreatedAt, StartedAt, FinishedAt timestamps.
2016-09-12 12:55:49 -07:00
Kubernetes Submit Queue
54f24b02ea Merge pull request #31612 from jayunit100/patch-1
Automatic merge from submit-queue

Asciidoc for scheduler

Add more structure to the scheduler introduction.  This diagram should be easier to maintain as we add more features.
2016-09-12 12:50:09 -07:00
Kubernetes Submit Queue
ee2ae078b1 Merge pull request #31573 from yujuhong/shim_tests
Automatic merge from submit-queue

dockershim: use the new Metadata types and add more unit tests

Part of #31459
2016-09-12 12:50:04 -07:00
Kubernetes Submit Queue
bfef4ad73b Merge pull request #32508 from mwielgus/ca-0.3
Automatic merge from submit-queue

Bump cluster autoscaler to 0.3

Almost no changes comparing to 0.3.0-beta6. Just a minor fix in AWS support: https://github.com/kubernetes/contrib/pull/1721.
2016-09-12 12:49:58 -07:00
Kubernetes Submit Queue
74ad07de86 Merge pull request #32500 from kubernetes/revert-32196-rescheduler-e2e-gke
Automatic merge from submit-queue

Revert "Enabled Rescheduler e2e for gke"

Reverts kubernetes/kubernetes#32196

This broke gke-serial.

fix #31710
2016-09-12 12:49:53 -07:00
nikhiljindal
4c22c3fce5 Initialising cluster var before using it 2016-09-12 12:04:06 -07:00
Michael Taufen
28db03869b Fix memory eviction test parameters. Those parameters should NOT have come through in b9f0bd95 2016-09-12 12:01:53 -07:00
Zhou Fang
a6500cc74a change benchmark configration file to add QPS60 tests 2016-09-12 11:46:38 -07:00
Phillip Wittrock
dd6f8bfb31 Update CHANGELOG.md for v1.4.0-beta.3. 2016-09-12 11:32:49 -07:00
Saad Ali
33ef46ccc8 Merge pull request #32507 from kubernetes/revert-32279-remove-deletion-sleep
Revert "Remove long sleep in provisioning e2e tests."
2016-09-12 11:26:29 -07:00
Saad Ali
9ac08144d1 Revert "Remove long sleep in provisioning e2e tests." 2016-09-12 11:16:34 -07:00
Yu-Ju Hong
84aab8d4a8 dockershim: utilize the Metadata in container names
This commit changes how the shim constructs and parses docker container names
by using the new "Metadata" types.
2016-09-12 10:58:21 -07:00
Yu-Ju Hong
7227641fc2 dockershim: move naming helpers to a separate file 2016-09-12 10:58:21 -07:00
Yu-Ju Hong
a1833d1947 dockershim: bug fixes and more unit tests
Fixing the name triming and other small bugs. Added sandbox listing unit tests.
2016-09-12 10:58:21 -07:00
Chao Xu
70d62a93a5 other manual changes 2016-09-12 10:24:18 -07:00
Marcin Wielgus
0bee184681 Bump cluster autoscaler to 0.3 2016-09-12 18:56:54 +02:00
David McMahon
115855bbd2 Update CHANGELOG.md for v1.4.0-beta.2. 2016-09-12 09:03:13 -07:00
Piotr Szczesniak
70755448b0 Revert "Enabled Rescheduler e2e for gke" 2016-09-12 17:25:13 +02:00
deads2k
385831825b update error handling for daemoncontroller 2016-09-12 11:01:46 -04:00
Kubernetes Submit Queue
520cd7e6f3 Merge pull request #31241 from m1093782566/m109-cross-build-serve-hostname
Automatic merge from submit-queue

Cross-build test/images/serve_hostname

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:

**cross build** `test/images/serve_hostname`

https://github.com/kubernetes/kubernetes/tree/master/test/images/serve_hostname

This PR is an effort to achieve multiarch Kubernetes(#26863)

**Which issue this PR fixes** : 

fixes #31238 

@luxas @spxtr
2016-09-12 05:57:46 -07:00
deads2k
519c13745f convert rest of kubectl to generated clients 2016-09-12 08:22:34 -04:00
Kubernetes Submit Queue
a29ab082d5 Merge pull request #32461 from smarterclayton/endpoints_loggy
Automatic merge from submit-queue

Endpoints controller is logspamming
2016-09-12 05:20:25 -07:00
Kubernetes Submit Queue
0b5e024789 Merge pull request #32471 from wojtek-t/use_controller_ref_for_avoid_priority
Automatic merge from submit-queue

Use "controller ref" in NodePreferAvoidPriority 

Ref #28590

@caesarxuchao - FYI
2016-09-12 05:20:20 -07:00
Kubernetes Submit Queue
7802a61e16 Merge pull request #32483 from wojtek-t/log_outgoing_channel_size
Automatic merge from submit-queue

Extend logging for performance debugging
2016-09-12 04:40:00 -07:00
Kubernetes Submit Queue
c07d0b7752 Merge pull request #32462 from smarterclayton/sj_logs
Automatic merge from submit-queue

ScheduledJob controller is too chatty
2016-09-12 04:39:53 -07:00
Kubernetes Submit Queue
148628cbba Merge pull request #32279 from jsafrane/remove-deletion-sleep
Automatic merge from submit-queue

Remove long sleep in provisioning e2e tests.

PV controller sync is now 15 seconds, i.e. the controller re-tries to delete a PV four times in a minute until it succeeds. There is no need to wait for three minutes.

@kubernetes/sig-storage
2016-09-12 04:39:48 -07:00
deads2k
f756e43e7f convert rolling updater to generated client 2016-09-12 07:38:34 -04:00
deads2k
11c4de457d generated client code 2016-09-12 07:38:34 -04:00