Commit Graph

27792 Commits (0a5d57a383bd85228695617f8c7b85bed8bd25d9)

Author SHA1 Message Date
k8s-merge-robot 0a5d57a383 Merge pull request #24079 from hongchaodeng/comp
Automatic merge from submit-queue

etcd3 store: provide compactor util

What's this PR?
- Provides a util to compact keys in etcd.

Reason:
We want to save the most recent 10 minutes event history. It should be more than enough for slow watchers. It is not number based, so it can tolerate event bursts too. We do not want to save longer since the current storage API cannot take advantage of the multi-version key yet. We might keep a longer history in the future.
2016-04-21 05:19:54 -07:00
k8s-merge-robot 767fa6913d Merge pull request #24118 from smarterclayton/proxy_args
Automatic merge from submit-queue

Allow Proxy to be initialized with store
2016-04-21 04:42:43 -07:00
k8s-merge-robot 09adffb318 Merge pull request #23317 from aanm/removing-ipv4-enforcement
Automatic merge from submit-queue

Remove requirement that Endpoints IPs be IPv4

Signed-off-by: André Martins <aanm90@gmail.com>

Release Note: The `Endpoints` API object now allows IPv6 addresses to be stored.  Other components of the system are not ready for IPv6 yet, and many cloud providers are not IPv6 compatible, but installations that use their own controller logic can now store v6 endpoints.
2016-04-21 03:34:50 -07:00
Wojciech Tyczynski 739d0a61d3 Merge pull request #24587 from smarterclayton/provide_generated_proto
Generate protobuf marshallers for new apps group
2016-04-21 08:26:33 +02:00
Clayton Coleman 6ab9cfcc39 Generate protobuf marshallers for new apps group 2016-04-21 01:39:50 -04:00
k8s-merge-robot f8d4f6157f Merge pull request #24570 from hongchaodeng/w
Automatic merge from submit-queue

watcher test: print more info for debugging

ref: #24528

This will print out more info to dig out the root cause.
2016-04-20 19:01:10 -07:00
k8s-merge-robot 1f8bd21ac8 Merge pull request #24315 from bprashanth/ps_v1alpha1
Automatic merge from submit-queue

Apigroup and alpha resource for petset

I'm still writing unittests, validation and comments but I'm planning to punt on anything more involved since this is alpha. 

@smarterclayton @bgrant0607 @thockin probably only care about first commit. I'm hoping we can take this as a rough cut and iterate. 

@lavalamp for general api machinery
2016-04-20 19:01:08 -07:00
Prashanth Balasubramanian 0ac10c6cc2 PetSet type, apps apigroup 2016-04-20 18:49:31 -07:00
k8s-merge-robot 2599607a64 Merge pull request #24521 from fejta/flannel
Automatic merge from submit-queue

Disable flannel job until it works

https://github.com/kubernetes/kubernetes/issues/24520

See bug, this job is fails every time and has done so for two months. Until someone has time to investigate and fix disable the job on jenkins so we're not wasting resources and reducing system stability.
2016-04-20 18:27:28 -07:00
k8s-merge-robot cee4273e43 Merge pull request #24374 from smarterclayton/proto_default_on
Automatic merge from submit-queue

Enable protobuf compilation by default

Enables protobuf compilation, build verification checks, and generates all initial code.

kubectl is now 47M on OSX, build time from clean on a 2014 MBP (4 core) on Go 1.6 is ~150s.

@wojtek-t
2016-04-20 18:27:26 -07:00
k8s-merge-robot f3f3a685ab Merge pull request #24537 from mwielgus/fix-race-hpa
Automatic merge from submit-queue

Add locks in HPA test

Fixes #23361
2016-04-20 17:49:45 -07:00
Erick Fejta 7c2eb2c43e Disable flannel job until it works 2016-04-20 17:18:01 -07:00
k8s-merge-robot 49741c71aa Merge pull request #24270 from gtank/swaggergen-defaults
Automatic merge from submit-queue

hack: change update-swagger-spec.sh apiserver defaults

Removing the explicit list of KUBE_API_VERSIONS will cause the apiserver
to enable all APIs by default. This change reduces the amount of script
hacking needed to add new API groups in the future.
2016-04-20 17:13:34 -07:00
k8s-merge-robot 2f70b03aac Merge pull request #24565 from luxas/fix_kube_cross_push
Automatic merge from submit-queue

Fix so make == make push in the kube-cross Makefile

ref: https://github.com/kubernetes/kubernetes/pull/23931#issuecomment-210120719
@david-mcmahon
2016-04-20 16:12:28 -07:00
Hongchao Deng 2bc022aad4 watcher test: print more info for debugging 2016-04-21 06:56:50 +08:00
k8s-merge-robot 5fe6f39141 Merge pull request #24551 from david-mcmahon/changelog-1.3.0-alpha.2
Automatic merge from submit-queue

Fix gs:// path to kubernetes binary in 1.3.0-alpha.2.

ref #24535 #24534
2016-04-20 14:50:39 -07:00
k8s-merge-robot 8a76a1bd36 Merge pull request #24234 from goltermann/vetclean
Automatic merge from submit-queue

Enable go vet.
2016-04-20 14:50:37 -07:00
Lucas Käldström c7233ab824 Fix so make == make push in the kube-cross Makefile 2016-04-21 00:05:02 +03:00
k8s-merge-robot 7f362b18de Merge pull request #23995 from hongchaodeng/ttl
Automatic merge from submit-queue

etcd3/store: support TTL in Create, Update

ref: https://github.com/kubernetes/kubernetes/issues/22448

What's included in the PR?
- Support TTL keys in Create() and Update()
- Simple testing for create

Note
- Have TTL keys in a long window (5min) in one lease. I'm not sure if we should do it right now. We could just implement it as simple as is. Once we have etcd3 work done we could start testing and measuring with some realistic load.
2016-04-20 13:30:54 -07:00
Marcin Wielgus c5a64c1f44 Add locks in HPA test 2016-04-20 22:29:01 +02:00
David McMahon 77ed9d3850 Fix gs:// path to kubernetes binary in 1.3.0-alpha.2. 2016-04-20 12:38:16 -07:00
k8s-merge-robot 8a8177f99e Merge pull request #24106 from vishh/local-cluster-setup
Automatic merge from submit-queue

Proposal for improving local cluster experience.

This proposal attempts to improve the existing single node, local cluster experience in Kubernetes.

It is **not** a proposal that helps with setting up a multi-node, production cluster.

cc @dlorenc  @ethernetdan @runseb @mfburnett @bgrant0607 @pwittrock
2016-04-20 11:34:14 -07:00
k8s-merge-robot 6402b04cf3 Merge pull request #24395 from caesarxuchao/use-serializer
Automatic merge from submit-queue

client-gen: use serializer instead of codec for versioned client

For a versioned client, because the output of every client method is a versioned object, so it should use a serializer instead of a codec that does conversion.

@lavalamp @krousey
2016-04-20 10:48:41 -07:00
k8s-merge-robot 70bfe6aeea Merge pull request #24531 from andyzheng0831/manifest
Automatic merge from submit-queue

Trusty: Handle the new var in kube-proxy manifest

This is to capture the kube-proxy manifest change in PR #24429.

@roberthbailey @fabioy @zmerlynn please review this change and mark it as cherry pick candidate. We need to catch up 1.2.3 release.

cc/ @dchen1107 @wonderfly @cjcullen FYI.

I have verified this fix. Without this fix, kube-proxy pod in Trusty nodes cannot be started correctly, i.e., the command line has an unhadled variable. And some other kube-system pods do not work correctly as kube-proxy is not working well. After applying this fix, kube-proxy can be started correctly, and all kube-system pods run successfully.
2016-04-20 10:48:39 -07:00
k8s-merge-robot 2be704f9ad Merge pull request #24465 from aknuds1/glbc
Automatic merge from submit-queue

Fix GLBC cluster addon README link

Fix the link to L7 load balancer controller in GLBC cluster addon README.

Fixed #24462.
2016-04-20 09:57:22 -07:00
goltermann 3fa6c6f6d9 Enable vet 2016-04-20 09:48:24 -07:00
Clayton Coleman befe95869b Add generated-protobuf to hack/update-all.sh 2016-04-20 12:13:10 -04:00
Clayton Coleman 58afaaafb1 Check for protobuf mimetype in apiserver 2016-04-20 12:13:10 -04:00
Clayton Coleman 86fb71aba7 Generated deep copies for new proto types 2016-04-20 12:13:09 -04:00
Clayton Coleman 6586074e88 Update API docs 2016-04-20 12:13:09 -04:00
Clayton Coleman ddb7b54006 Ensure a newline at the end of all API docs 2016-04-20 12:13:08 -04:00
Clayton Coleman e16a7f2421 Initial protobuf generated files 2016-04-20 12:13:05 -04:00
Clayton Coleman cea4c010a6 Strip the proto build guard 2016-04-20 12:12:29 -04:00
k8s-merge-robot 3753e2bded Merge pull request #24180 from AdoHe/reuse_node_port
Automatic merge from submit-queue

Fix unintended change of Service.spec.ports[].nodePort during kubectl apply

Please refer #23551 for more detail. @bgrant0607 I think this simple fix should be ok to reuse nodePort. @thockin ptal.

Release note: Fix unintended change of `Service.spec.ports[].nodePort` during `kubectl apply`.
2016-04-20 08:51:40 -07:00
Andy Zheng 7772b7f1ce Trusty: Handle the new var in kube-proxy manifest 2016-04-20 08:27:41 -07:00
k8s-merge-robot f3f6ffaa28 Merge pull request #24524 from wojtek-t/fix_scheduler_2
Automatic merge from submit-queue

Add RC and container pors to scheduler benchmark

Fix #23263

Ref  #24408
However - scheduler throughput is still ~140 initially, whereas in reality we have 35-40. There are still significant difference we should understand.

@hongchaodeng @xiang90
2016-04-20 07:18:20 -07:00
Wojciech Tyczynski a4b3f47347 Add RC and container pors to scheduler benchmark 2016-04-20 15:10:57 +02:00
k8s-merge-robot b274911e0e Merge pull request #23829 from derekwaynecarr/fix_admission_order
Automatic merge from submit-queue

ResourceQuota should be last admission controller

For background, see documentation:

http://kubernetes.io/docs/admin/admission-controllers/#resourcequota
2016-04-20 04:58:04 -07:00
k8s-merge-robot 15ed9dbd02 Merge pull request #23771 from jayunit100/ClusterVerificationFramework
Automatic merge from submit-queue

Cluster Verification Framework

I've spent the last few days looking at the general patterns of verification we have that we tend to reuse in the e2es.  Basically, we need 
 
- label filters
- forEach and WaitFor (where forEach doesn't necessarily waitFor anything).
- timeouts
- multiple phases (reusable definition of state)
- an extensible way to define cluster state that can evolve over time in a data object rather than as a set of parameters that have magic semantics

This PR 
- implements the abstract above functionality declaratively, and w/o hidden semantics.
- addresses the sprawling duplicate methods in #23540, so that we can phase out the wrapper methods and replace them with well defined, extensible semantics for cluster state.
- fixes the recently discovered #23730 issue (where kubectl.go is relying on examples.go, which is obviously wacky) by using the new framework to implement forEachPod in just a couple of lines and migrating the wrapper function into framework.go.

There is some cleanup to do here, but this is seemingly working for a couple of use cases that are important (spark,cassandra,...,kubectl) tests. - i played with a few different ideas and this wound up seeming to be the most natural implementation from a usability standpoint... 

in any case, just thought id push this up as a first iteration, open to feedback.

@kubernetes/sig-testing @timothysc
2016-04-20 04:23:21 -07:00
k8s-merge-robot 1c80864913 Merge pull request #24257 from zmerlynn/1000nodes
Automatic merge from submit-queue

Fix DNS test for larger clusters

On GKE, we scale the number of DNS pods based on the cluster size. For
testing on larger clusters, relax the DNS pod check.
2016-04-20 03:49:40 -07:00
k8s-merge-robot 035e365de7 Merge pull request #24245 from autostatic/master
Automatic merge from submit-queue

Added check for noexec mount of /tmp on master

Signed CLA.
2016-04-20 03:49:39 -07:00
k8s-merge-robot 537a739b3b Merge pull request #22995 from swagiaal/fix-gitrepo-ownership
Automatic merge from submit-queue

Set ownership to fsGroup in gitrepo

Set ownership to fsGroup in the gitrepo volume plugin

@pmorie
2016-04-20 03:49:37 -07:00
k8s-merge-robot 60afb8f005 Merge pull request #24454 from nikhiljindal/duplicateRun
Automatic merge from submit-queue

genericapiserver: Moving more flags to ServerRunOptions

Moving more apiserver flags to generic api server.

With this change, most of the Config is created in genericapiserver.NewConfig(). The plan is to move everything there.
I didnt touch Storage related params as they are being changed in https://github.com/kubernetes/kubernetes/pull/23208.
And I will handle authz and authn in another PR (need to figure out a few things).

cc @lavalamp @kubernetes/sig-api-machinery
2016-04-20 03:49:35 -07:00
k8s-merge-robot 4b7c24f753 Merge pull request #23959 from nikhiljindal/fed-serverclean
Automatic merge from submit-queue

Removing federated apiserver's dependency on kubernetes api objects

We can explicitly add kubernetes resources that will be supported in cluster federation, but by default, cluster federation server should not depend on kubernetes resources.

cc @jianhuiz
2016-04-20 03:05:48 -07:00
k8s-merge-robot 8c170ff5ff Merge pull request #24498 from caesarxuchao/dot-deepcopy-gen
Automatic merge from submit-queue

Remove dot in generated deepcopy package name

ref https://github.com/kubernetes/kubernetes/pull/20573#issuecomment-212125061

cc @wojtek-t 

I tested with #20573 to verify hack/codegen.sh worked and the generated code compiled.
2016-04-20 01:09:37 -07:00
k8s-merge-robot ebe4ce160e Merge pull request #24366 from janetkuo/kubectl-run-session-hint
Automatic merge from submit-queue

Fix session ended hint for kubectl run

Fixes #23602

Before:
```console
$ kubectl run -i --tty busybox --image=busybox 
Waiting for pod default/busybox-3797442026-mt8zk to be running, status is Pending, pod ready: false
Hit enter for command prompt
/ # 
/ # exit
Session ended, resume using ' busybox-3797442026-mt8zk -c busybox -i -t' command when the pod is running
                             ↑
                      (incomplete command)
```

After:
```console
Session ended, resume using 'kubectl attach busybox-3797442026-mt8zk -c busybox -i -t' command when the pod is running
```

@kubernetes/kubectl
2016-04-20 00:30:23 -07:00
k8s-merge-robot 327d32dcad Merge pull request #24437 from yujuhong/influxdb_hostport
Automatic merge from submit-queue

Remove host port in influxdb-grafana-controller.yaml
2016-04-19 23:48:09 -07:00
AdoHe 16960d3ad2 fix reuse nodePort issue 2016-04-20 02:30:03 -04:00
k8s-merge-robot 4c9bbea0cf Merge pull request #24506 from timstclair/ssh
Automatic merge from submit-queue

Don't log private SSH key

Log files may have more inclusive permissions than private SSH keys, and as such we should not log the key, even if it looks invalid. I accidentally leaked my key this way when posting e2e test logs.
2016-04-19 22:36:44 -07:00
k8s-merge-robot 28f968aa1a Merge pull request #24505 from yujuhong/remove_test
Automatic merge from submit-queue

Remove disabled mirror pod test in cmd/integration

The new tests for mirror pods are being added in the node e2e suite.

This partially addresses #24440
2016-04-19 22:36:43 -07:00