Commit Graph

29755 Commits

Author SHA1 Message Date
k8s-merge-robot
e543bd6452 Merge pull request #26007 from smarterclayton/watch_opt
Automatic merge from submit-queue

Additional optimizations to the encode/decode paths

Builds on top of #25983 with a number of other optimizations.
2016-05-28 06:27:00 -07:00
Clayton Coleman
8b01cfe1eb
Serialization test should verify encode does not mutate in 2016-05-28 08:53:22 -04:00
Clayton Coleman
2faf49c75c
Generated fields for inlining 2016-05-28 08:53:22 -04:00
Clayton Coleman
0854fd651c
Update direct conversions to inline fields 2016-05-28 08:52:08 -04:00
Clayton Coleman
51e155fc11
Conversions should generate inline copies 2016-05-28 08:52:08 -04:00
Clayton Coleman
4c6da96f85
Add a reflection based object diff with structured format 2016-05-28 08:52:07 -04:00
Clayton Coleman
404a1b1dc5
Remove alpha init containers from benchmarks (skews results) 2016-05-28 08:52:04 -04:00
k8s-merge-robot
c730198aad Merge pull request #25982 from derekwaynecarr/fix_stats
Automatic merge from submit-queue

Fix system container detection in kubelet on systemd

```release-note
Fix system container detection in kubelet on systemd.

This fixed environments where CPU and Memory Accounting were not enabled on the unit 
that launched the kubelet or docker from reporting the root cgroup when 
monitoring usage stats for those components.
```

Fixes https://github.com/kubernetes/kubernetes/issues/25909

/cc @kubernetes/sig-node @kubernetes/rh-cluster-infra @vishh @dchen1107
2016-05-28 05:38:15 -07:00
k8s-merge-robot
04bdd37bc4 Merge pull request #25972 from luxas/remove_arch_constants
Automatic merge from submit-queue

Use pause image depending on the server's platform when testing

Removed all pause image constant strings, now the pause image is chosen by arch. Part of the effort of making e2e arch-agnostic.

The pause image name and version is also now only in two places, and it's documented to bump both
Also removed "amd64" constants in the code. Such constants should be replaced by `runtime.GOARCH` or by looking up the server platform

Fixes: #22876 and #15140
Makes it easier for: #25730
Related: #17981

This is for `v1.3`
@ixdy @thockin @vishh @kubernetes/sig-testing @andyzheng0831 @pensu
2016-05-28 04:48:59 -07:00
André Martins
10fb9bdcf3 Add -addr option to hack/lib/etcd.h
Signed-off-by: André Martins <aanm90@gmail.com>
2016-05-28 12:15:45 +01:00
k8s-merge-robot
e7a13ac2ad Merge pull request #25902 from euank/changeVolumeMounts
Automatic merge from submit-queue

rkt: Use volumes from RunContainerOptions

This replaces the previous creation of mounts from the `volumeGetter`
with mounts provided via RunContainerOptions.

This is motivated by the fact that the latter has a more complete set of
mounts (e.g. the `/etc/hosts` one created in kubelet.go in the case an IP is available).

This does not induce further e2e failures as far as I can tell.

cc @yifan-gu
2016-05-28 03:58:14 -07:00
k8s-merge-robot
74b20cccc6 Merge pull request #25813 from rrati/kubelet-pods-per-core
Automatic merge from submit-queue

Added pods-per-core to kubelet. #25762

Added --pods-per-core to kubelet

#25762
2016-05-28 03:08:28 -07:00
k8s-merge-robot
a550cf16b9 Merge pull request #25826 from freehan/svcsourcerange
Automatic merge from submit-queue

promote sourceRange into service spec

@thockin  one more for your pile

I will add docs at `http://releases.k8s.io/HEAD/docs/user-guide/services-firewalls.md`

cc: @justinsb 

Fixes: #20392
2016-05-28 02:20:13 -07:00
k8s-merge-robot
3f455fba12 Merge pull request #26441 from aanm/fixing-local-up-cluster-sh
Automatic merge from submit-queue

Add more global options to local-up-cluster.sh

I added a couple more global variables to the `local-up-cluster.sh` script.

The `KUBELET_HOST` environment name make sense to me. If it isn't the best name I will change it.

The `ETCD` ones make sense since they are being used under `hack/lib/etcd.sh`

Signed-off-by: André Martins <aanm90@gmail.com>
2016-05-28 01:30:55 -07:00
k8s-merge-robot
7fae9c14e2 Merge pull request #25662 from deads2k/prevent-hotloop
Automatic merge from submit-queue

prevent namespace cleanup hotloop

Found chasing a sentry report.  Looks like we hot-loop on namespace deletion failures.

@derekwaynecarr ptal
2016-05-28 01:30:51 -07:00
k8s-merge-robot
011258917b Merge pull request #26465 from david-mcmahon/addvendor
Automatic merge from submit-queue

Verify changes against upstream vendor/ as well.

cc @ixdy
2016-05-28 00:43:37 -07:00
k8s-merge-robot
a5222574d4 Merge pull request #25614 from justinsb/feature/flag-configure-cloud-routes
Automatic merge from submit-queue

kube-controller-manager: Add configure-cloud-routes option

This allows kube-controller-manager to allocate CIDRs to nodes (with
allocate-node-cidrs=true), but will not try to configure them on the
cloud provider, even if the cloud provider supports Routes.

The default is configure-cloud-routes=true, and it will only try to
configure routes if allocate-node-cidrs is also configured, so the
default behaviour is unchanged.

This is useful because on AWS the cloud provider configures routes by
setting up VPC routing table entries, but there is a limit of 50
entries.  So setting configure-cloud-routes on AWS would allow us to
continue to allocate node CIDRs as today, but replace the VPC
route-table mechanism with something not limited to 50 nodes.

We can't just turn off the cloud-provider entirely because it also
controls other things - node discovery, load balancer creation etc.

Fix #25602
2016-05-27 23:52:51 -07:00
k8s-merge-robot
5b03fd5697 Merge pull request #26448 from pwittrock/fix-26318-kubemark-junit-results
Automatic merge from submit-queue

Kubemark e2e tests should exit 0 for test failures.

Fixed #26318
2016-05-27 23:04:36 -07:00
k8s-merge-robot
4aa8c7340b Merge pull request #26333 from fejta/ssh
Automatic merge from submit-queue

Push public key to project if not already present

Fixes https://github.com/kubernetes/kubernetes/issues/26128
Fixes https://github.com/kubernetes/kubernetes/issues/26129

Whenever the ssh key changes (which happens right now whenever we add/change a new jenkins agent) this key will not get pushed to the project until either `gcloud compute ssh` or `gcloud compute config-ssh` runs. As a result instances on this project will reject ssh attempts with this key.

In many cases this will not happen until after a test on a project fails and we attempt to ssh to the nodes to grab logs.

This verifies the presence of the ssh key before starting tests, and attempts to add it if it is missing.
2016-05-27 22:10:19 -07:00
k8s-merge-robot
f32b2582df Merge pull request #26391 from timstclair/containerd
Automatic merge from submit-queue

Move containerd process into docker cgroup for versions >= v1.11

Addresses https://github.com/kubernetes/kubernetes/issues/23397#issuecomment-209583923

/cc @vishh @kubernetes/sig-node
2016-05-27 19:42:48 -07:00
k8s-merge-robot
dd6d616190 Merge pull request #26381 from caesarxuchao/subresource-patch
Automatic merge from submit-queue

Expose GET and PATCH for status subresource

We can do this for other status subresource. I only updated node/status in this PR to unblock https://github.com/kubernetes/node-problem-detector/issues/9.

cc @Random-Liu @lavalamp
2016-05-27 18:53:33 -07:00
David McMahon
12edc97862 Verify changes against upstream vendor/ as well. 2016-05-27 16:27:42 -07:00
Euan Kemp
c83ad19ae9 kubenet: Fix ipv4 validity check
The length of an IP can be 4 or 16, and even if 16 it can be a valid
ipv4 address. This check is the more-correct way to handle this, and it
also provides more granular error messages.
2016-05-27 16:25:14 -07:00
Alex Robinson
baaf1b628a Merge pull request #25696 from rmmh/showbuildlog
Show hack/build-go.sh output during e2e tests.
2016-05-27 16:17:08 -07:00
Alex Robinson
91f8c784a0 Merge pull request #21373 from enoodle/read_cadvisor_cloudinfo_in_kubelet
kubelet: reading cloudinfo from cadvisor
2016-05-27 16:14:24 -07:00
Alex Robinson
782ac14f70 Merge pull request #25848 from bprashanth/petset_e2e
Petset e2es
2016-05-27 16:09:52 -07:00
Alex Robinson
079a2b4cc0 Merge pull request #26459 from smarterclayton/bump_appc
bump(github.com/appc/spec):ab50d12e88f57788bf84b83fef2be236eb1fcc0b
2016-05-27 16:07:09 -07:00
André Martins
bd37100713 Add more global env vars to local-up-cluster.sh
Signed-off-by: André Martins <aanm90@gmail.com>
2016-05-27 23:58:01 +01:00
Alex Robinson
cddf564f3c Merge pull request #24771 from timstclair/event-store
Disable cAdvisor event storage by default
2016-05-27 15:56:13 -07:00
Phillip Wittrock
c3e1c12985 Kubemark e2e tests should exit 0 for test failures.
Jenkins relies on junit.xml to identify test failures
and non-0 exit codes to indentify infrastructure failures.
Test failures in kubemark tests should not cause the test
script to exit non-0.  Infrastructure failures should.

- Add function to dump cluster logs without exiting (refactor)
- Change `test/kubemark/stop-kubemark.sh` to be run regardless of whether tests fail or not
- Exit code for failed tests overwritten to be the exit code of dumping the cluster logs
2016-05-27 15:45:18 -07:00
Clayton Coleman
74bfb3e7bd bump(github.com/appc/spec):ab50d12e88f57788bf84b83fef2be236eb1fcc0b
To match changes to pkg/api/resource#ParseQuantity
2016-05-27 18:43:00 -04:00
Quinton Hoole
2240da1f2a Vendor in google.golang.org/api/dns 2016-05-27 15:29:13 -07:00
Quinton Hoole
0af78dcce7 Google Cloud DNS dnsprovider rewrite/refactor for unit tests. Successfully Tested against both real backend and stubbed backend. 2016-05-27 15:22:43 -07:00
Gyu-Ho Lee
c3fc714ec2 pkg/runtime: preallocate slice in unstructured.go
To avoid slice growth when appending.
2016-05-27 14:54:25 -07:00
Random-Liu
52a3d8a19d Add unit test for image history cache 2016-05-27 14:49:48 -07:00
Random-Liu
56bde2df9f Cache image history 2016-05-27 14:49:48 -07:00
Alex Robinson
1cca499e92 Merge pull request #26225 from yujuhong/less_noise
Reduce noise in kubelet.log
2016-05-27 14:28:53 -07:00
Alex Robinson
d577550dd0 Merge pull request #26054 from gmarek/flags
Make service-range flag in controller-manager optional
2016-05-27 14:26:15 -07:00
Alex Robinson
644258fa56 Merge pull request #26422 from sttts/sttts-flake-26210-status-error
Flake 26210: verbosely print StatusError in proxy e2e test
2016-05-27 14:20:11 -07:00
Alex Robinson
90ca2aae24 Merge pull request #26423 from wojtek-t/speedup_update_codecget
Speedup update_codecgen by precomputing dependencies.
2016-05-27 14:19:08 -07:00
Erick Fejta
0e1c2ee20c Push public key to project if not already present 2016-05-27 13:56:18 -07:00
Alex Robinson
f6b4707619 Merge pull request #26308 from quinton-hoole/2016-05-25-uberentes-add-cluster-zone
Add zones and region to federation cluster API object status.
2016-05-27 13:23:46 -07:00
Euan Kemp
abbd0321b2 rkt: Use volumes from RunContainerOptions
This replaces the previous creation of mounts from the `volumeGetter`
with mounts provided via RunContainerOptions.

This is motivated by the fact that the latter has a more complete set of
mounts (e.g. the `/etc/hosts` one created in kubelet.go).
2016-05-27 13:11:47 -07:00
k8s-merge-robot
7fc2e16843 Merge pull request #26442 from mwielgus/reduce-ca-request
Automatic merge from submit-queue

Reduce cluster autoscaler request to fit into n1 master in e2e tests

cc: @piosz @fgrzadkowski @vulpecula
2016-05-27 13:11:13 -07:00
Wojciech Tyczynski
92fc59cacf Speedup update_codecgen by precomputing dependencies. 2016-05-27 22:01:06 +02:00
Quinton Hoole
8fb3c81ac3 Add zones and region to federation cluster API object status. 2016-05-27 12:24:44 -07:00
Alex Robinson
b61ce0bc81 Merge pull request #26443 from ixdy/jenkins-build-only-if-new
Don't delete existing CI releases if pushing the same version
2016-05-27 12:15:59 -07:00
Jeff Grafton
7cafb1763c Don't delete existing CI releases if pushing the same version. 2016-05-27 12:07:49 -07:00
Alex Robinson
4db3cc7e5e Merge pull request #26396 from colhom/fix-federation-build
Fix docker load error in federation image push
2016-05-27 11:44:32 -07:00
Alex Robinson
bd0b94efe2 Merge pull request #26029 from luxas/mkdir_all
kubelet: Use MkdirAll instead of Mkdir
2016-05-27 11:40:01 -07:00