Commit Graph

28514 Commits

Author SHA1 Message Date
Dan Williams
aad6535a00 kubenet: fix up CNI bridge TX queue length if needed
CNI's bridge plugin mis-handles the TxQLen when creating the bridge,
leading to a zero-length TX queue.  This doesn't typically cause
problems (since virtual interfaces don't have hard queue limits)
but when adding traffic shaping, some qdiscs pull their packet
limits from the TX queue length, leading to a packet limit of 0
in some cases.  Until we can depend on a new enough version of
CNI, fix up the TX queue length internally.
2016-05-04 10:14:40 -05:00
Wojciech Tyczynski
25164537ef ref 2016-05-04 16:53:59 +02:00
Marcin Wielgus
8e90cded97 Update Heapster api types location in Godeps 2016-05-04 16:27:12 +02: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
Sami Wagiaalla
71e7dba845 Abstract node side functionality of attachable plugins
- Expand Attacher/Detacher interfaces to break up work more
  explicitly.
- Add arguments to all functions to avoid having implementers store
  the data needed for operations.
- Expand unit tests to check that Attach, Detach, WaitForAttach,
  WaitForDetach, MountDevice, and UnmountDevice get call where
  appropriet.
2016-05-04 10:18:39 -04:00
Wojciech Tyczynski
11849e232e Fix bug in json framer. 2016-05-04 15:02:07 +02:00
k8s-merge-robot
3b63b06b1b Merge pull request #24849 from fejta/flake
Automatic merge from submit-queue

Use tagged redis image for kubectl test, move json test file out of deprecated examples

Closes #24642

Changes the redis image to use the :e2e tagged version on gcr.io.

Since the examples/ subdir is deprecated in favor of the new kubernetes/kubernetes.github.io I just copied this file to test-manifests/kubectl like some other files.
2016-05-04 05:53:17 -07:00
Jan Safranek
f4abfb2a0c Make fake event recorder thread safe.
The test recorder should be thread safe in case it's used in multiple
goroutines. This does not serve to ensure any order of recorded events,
only to prevent golang race detector to crash when two events are emitted by
concurrent goroutines.
2016-05-04 14:20:13 +02:00
Jan Safranek
71796b7098 e2e: Enable persistent volume test
The test is already there and all packages should be already available on all
test machines (namely: mount.nfs).

It tests:
- binding
- using bound claim in a pod
- recycling NFS volume
2016-05-04 13:53:39 +02:00
k8s-merge-robot
963aebd3e5 Merge pull request #25123 from jlewi/jessie
Automatic merge from submit-queue

Add an entry to the salt config to allow Debian jessie on GCE.

```release-note
Add an entry to the salt config to allow Debian jessie on GCE.

As with the existing Wheezy image on GCE, docker is expected
to already be installed in the image.
```


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-04 04:22:39 -07:00
k8s-merge-robot
bc010d76cc Merge pull request #24751 from krousey/meta_unstructured
Automatic merge from submit-queue

Redo Unstructured to have accessor methods

Add accessor methods that implement pkg/api/unversioned.ObjectKind,
pkg/api/meta.Object, pkg/api/meta.Type and pkg/api/meta.List.

Removed the convenience fields since writing to them was not reflected
in serialized JSON.
2016-05-04 04:22:34 -07:00
k8s-merge-robot
dcc2a400d0 Merge pull request #25115 from freehan/bumpcni
Automatic merge from submit-queue

bump cni binary
2016-05-04 03:07:06 -07:00
k8s-merge-robot
72c7dd4b95 Merge pull request #25068 from hongchaodeng/fix
Automatic merge from submit-queue

etcd3/store: userUpdate error should be returned

Minor fix.
The userUpdate error should be returned.
2016-05-04 03:07:01 -07:00
k8s-merge-robot
fee33e1a5c Merge pull request #25048 from david-mcmahon/note-in-body
Automatic merge from submit-queue

Update docs to describe new PR release-note block parsing.
2016-05-04 03:06:57 -07:00
k8s-merge-robot
981890160e Merge pull request #18724 from derekwaynecarr/eviction_policy_spec
Automatic merge from submit-queue

Kubelet pod eviction proposal

The following is a proposal for how the `kubelet` may pro-actively fail a pod in response to local compute resources being starved.  The proposal focuses on memory as a first candidate, and defines a `greedy` strategy for reclaiming starved resources on the node since it seemed easiest to describe for operators versus other options and probably satisfies a broad set of use case environments.

Putting this out now for community feedback, but anticipate some more refinement around how we report eviction configuration back to users in the `Node API`.

/cc @bgrant0607 @smarterclayton @vishh @dchen1107 @kubernetes/rh-cluster-infra @kubernetes/goog-node
2016-05-04 03:06:54 -07:00
Wojciech Tyczynski
303742ce12 Merge pull request #24723 from smarterclayton/strip_noop_imports
Protobuf generation should strip side-effect imports
2016-05-04 11:16:45 +02:00
Wojciech Tyczynski
3aadafd411 Use NegotiatedSerializer in client 2016-05-04 10:57:36 +02:00
Wojciech Tyczynski
b4c83022e3 Add NegotiatedSerializer to config 2016-05-04 10:02:58 +02:00
Paul Morie
7521503ab9 Reduce kubelet LOC: extract getters 2016-05-04 02:25:22 -04:00
Jeremy Lewi
ccf4b381db Add an entry to the salt config to allow Debian jessie on GCE.
As with the existing Wheezy image on GCE, docker is expected
to already be installed in the image.
2016-05-03 22:17:38 -07:00
Matt Freeman
89e5e81bea Handle possible error in client reflector run loops 2016-05-04 05:01:54 +00:00
AdoHe
036ac359d1 update kubectl apply help info 2016-05-03 22:50:24 -04:00
zhouhaibing089
67747ca08f allow equality to avoid flaky on clock 2016-05-04 09:11:22 +08: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
4cf9754968 Merge pull request #20439 from gtank/kubelet-tls-bootstrap
Automatic merge from submit-queue

Add proposal for kubelet TLS bootstrap

A proposal based on the discussion of issue #18112, to implement a process by which kubelets can obtain TLS certificates in a streamlined manner.
2016-05-03 17:41:20 -07:00
AdoHe
ba69f0f367 mark container-port flag as deprecated 2016-05-03 20:36:42 -04:00
Minhan Xia
87c66c517d bump cni binary 2016-05-03 17:18:26 -07:00
Aaron Levy
dd8c3588ef cluster/images/hyperkube: Upgrade installed packages 2016-05-03 17:17:03 -07:00
Yu-Ju Hong
a3d5a4f358 Remove redundant RC and service tests in integration.go 2016-05-03 17:13:10 -07:00
Daniel Smith
d1de30cd6c remove inappropriate time.Sleep 2016-05-03 16:37:28 -07:00
k8s-merge-robot
56d1afba5c Merge pull request #25089 from janetkuo/test-convention-doc
Automatic merge from submit-queue

Update testing convention docs

@bgrant0607 @kubernetes/docs 
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-05-03 16:34:40 -07:00
Andy Zheng
73ee508005 GCI: Add two GCI specific metadata pairs 2016-05-03 14:45:27 -07:00
George Tankersley
5a65bb0044 docs: correct csr resource prefix 2016-05-03 14:20:24 -07:00
saadali
71302d1163 Add data structure for storing attach detach controller state. 2016-05-03 14:11:10 -07:00
Kris
28132be07e Redo Unstructured to have accessor methods
Add accessor methods that implement pkg/api/unversioned.ObjectKind,
pkg/api/meta.Object, pkg/api/meta.Type and pkg/api/meta.List.

Removed the convenience fields since writing to them was not reflected
in serialized JSON.
2016-05-03 14:07:28 -07:00
nikhiljindal
16c0e0a21c Deleting duplicate code from federated-apiserver 2016-05-03 14:04:09 -07:00
Janet Kuo
f3b1aaeca6 Fix incorrect comments in IsPodAvailable 2016-05-03 13:05:02 -07:00
k8s-merge-robot
be21fe786b Merge pull request #25095 from ihmccreery/kube-push-broken
Automatic merge from submit-queue

Mark kube-push.sh as broken

Per discussion on #17397.
2016-05-03 12:32:21 -07:00
David McMahon
3118b0c6c4 Update docs to describe new PR release-note block parsing. 2016-05-03 11:45:35 -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
c66250dd0d Merge pull request #24548 from pwittrock/kubectl
Automatic merge from submit-queue

Delete unused helpers
2016-05-03 11:26:25 -07:00
k8s-merge-robot
525515f52c Merge pull request #24071 from Clarifai/gpu
Automatic merge from submit-queue

Initial design doc for AWS GPU support

This is really v0

cc @erictune @davidopp @ravigadde @Hui-Zhi @Random-Liu
2016-05-03 11:26:21 -07:00
k8s-merge-robot
946a311e7b Merge pull request #25014 from smarterclayton/broken_framing_growth
Automatic merge from submit-queue

Frame decoder was checking cap(), not len()

Resulted in bytes being missing from the streaming decoder. Update both
parts.

Required for #24789

@wojtek-t or @lavalamp while he's OOO
2016-05-03 11:26:15 -07:00
Isaac Hollander McCreery
be7209d4fc Mark kube-push.sh as broken 2016-05-03 10:53:33 -07:00
k8s-merge-robot
ae6dec6337 Merge pull request #25073 from eparis/pin-gitignore
Automatic merge from submit-queue

Begin .gitignore lines with /

In /.gitignore we have lines like `kubernetes/`. Because that line is
not anchored with `/` it ignores any directory called `kubernetes`
anywhere in the repo. This caused a problem in #24242 because the user
didn't realize that the directory in `vendor/` was being ignored.
2016-05-03 10:39:57 -07:00
Janet Kuo
446ed330ac Update testing convention docs 2016-05-03 10:29:48 -07:00
Timothy St. Clair
0f06eb2595 Update godep for ginkgo and gomega to fix file based exclusion. #24140 2016-05-03 10:50:25 -05:00
Andy Goldstein
3a87bfb6f7 PLEG: reinspect pods that failed prior inspections
Fix the following sequence of events:

1. relist call 1 successfully inspects a pod (just has infra container)
1. relist call 2 gets an error inspecting the same pod (has infra container and a transient
container that failed to create) and doesn't update the old/new pod records
1. relist calls 3+ don't inspect the pod any more (just has infra container so it doesn't look like
anything changed)

This change adds a new list that keeps track of pods that failed inspection and retries them the
next time relist is called. Without this change, a pod in this state would never be inspected again,
its entry in the status cache would never be updated, and the pod worker would never call syncPod
again because the most recent entry in the status cache has an error associated with it. Without
this change, pods in this state would be stuck Terminating forever, unless the user issued a
deletion with a grace period value of 0.
2016-05-03 11:06:35 -04:00
Dan Lorenc
d6279917fe Add missing "--test" flag to conformance test instructions. 2016-05-03 07:25:07 -07:00
Eric Paris
1cb45c0bd1 Begin .gitignore lines with /
In /.gitignore we have lines like `kubernetes/`. Because that line is
not anchored with `/` it ignores any directory called `kubernetes`
anywhere in the repo. This caused a problem in #24242 because the user
didn't realize that the directory in `vendor/` was being ignored.
2016-05-03 08:57:12 -04:00