Commit Graph

40872 Commits (5a7644c5021fc03d9bf34d44ea64069dc801b134)

Author SHA1 Message Date
Madhusudan.C.S 5a7644c502 [Federation][init-11] Switch federation e2e tests to use the new federation control plane bootstrap via the `kubefed init` command. 2016-12-16 11:22:44 +05:30
Kubernetes Submit Queue e2a9fc1022 Merge pull request #38841 from mikedanese/fix-tests
Automatic merge from submit-queue

bazel: fix some unit tests
2016-12-15 20:19:46 -08:00
Kubernetes Submit Queue 5ec2fb0bcc Merge pull request #38845 from Random-Liu/fix-node-conformance-report-prefix
Automatic merge from submit-queue

Node Conformance Test: Fix report prefix for node conformance test.

The node conformance CI is running now.

The only problem is that junit files overwrite each other because of the lack of junit prefix. http://gcsweb.k8s.io/gcs/kubernetes-jenkins/logs/ci-kubernetes-node-kubelet-conformance/42/artifacts/

This PR fixes this. I've verified in my environment, it works well.

@timstclair
2016-12-15 18:45:03 -08:00
Mike Danese 8fdec87d19 bazel: fix some unit tests 2016-12-15 18:36:22 -08:00
Kubernetes Submit Queue 15059e6a5b Merge pull request #38839 from janetkuo/remove-GroupMeta-Codec
Automatic merge from submit-queue (batch tested with PRs 38842, 38839)

Remove GroupMeta.Codec

Fixes #21826
2016-12-15 18:08:15 -08:00
Kubernetes Submit Queue b13d25aa84 Merge pull request #38842 from david-mcmahon/fix-150-notes
Automatic merge from submit-queue

Add missing previous releases.

ref https://github.com/kubernetes/release/pull/235
2016-12-15 18:00:39 -08:00
Kubernetes Submit Queue 092a3b79bc Merge pull request #38688 from dshulyak/cleanup_recreate_test
Automatic merge from submit-queue (batch tested with PRs 35945, 38688)

Move test for evicted pet to Basic StatefulSet functionality block
2016-12-15 17:16:15 -08:00
Kubernetes Submit Queue c1c0583d09 Merge pull request #35945 from jianhuiz/federation-apiserver-batch-job-client
Automatic merge from submit-queue

Federation apiserver batch job client

generate internal and 1.5 client for federated job
requires #35943

@quinton-hoole @nikhiljindal @deepak-vij
#34261
2016-12-15 16:56:18 -08:00
David McMahon 60b4794a17 Add missing previous releases.
ref github.com/kubernetes/release/pull/235
2016-12-15 16:43:58 -08:00
Kubernetes Submit Queue 7ca5f92b58 Merge pull request #38780 from mikedanese/ds-fix1
Automatic merge from submit-queue

daemonset: bail out after we enqueue once

This isn't terrible because we dedup in the queue but it's a waste of
cycles.
2016-12-15 16:15:52 -08:00
Kubernetes Submit Queue 8d71970dcd Merge pull request #36462 from mikedanese/discovery
Automatic merge from submit-queue

kubeadm: refactor discovery behind an interface

This adds support for alternative discovery methods using discovery urls. It is a breaking change. This is a WIP.

Example usage:
```
$ kubeadm init --discovery token://
$ kubeadm join --discovery token://c05de9:ab224260fb3cd718@192.168.0.1:6555,191.168.0.2:6443
$ kubeadm join --discovery file:///etc/kubernetes/cluster.json
$ kubeadm join --discovery https://storage.google.apis.com/kube-discovery/98ea6e4/kubeconfig.json
```

@kubernetes/sig-cluster-lifecycle
2016-12-15 15:35:26 -08:00
Random-Liu c57f2ec064 Fix report prefix for node conformance test. 2016-12-15 15:27:14 -08:00
Kubernetes Submit Queue 845187b15a Merge pull request #38647 from deads2k/cli-14-factory
Automatic merge from submit-queue

make kubectl factory composeable

Alternate resolution of https://github.com/kubernetes/kubernetes/pull/38524.

Currently, the kubectl factory cannot be cleanly composed because without polymorphism, any calls which delegate to other factory methods cannot injected.  We cannot reasonably predict everything a composer would want to override, so enumeration of individual "we think this field is important" function is untenable.  On the other hand, having a method registry func and attaching methods to it resulted in chaos before 1.5 and the cleaner interface.

This pull takes the approach of building the factory in "rings" of subfactories.  RingN relies on RingN-1 and the overall factory is a set of nested factories.  No function in a "ring" is allowed to reference a peer function, but it may reference a parent ring's function.  This allows us to easily compose one chain for raw kube, but an extender can simply wrap a particular ring with his custom handling of particular functions and then continue the chain as normal.  This allows customization of each individual function.

It turns out that we have three rings.
 1. discovery, negotiation, and no-dep functions
 1. object typing and type mapping
 1. stuff that relies on type mapping (builder)

This pull does nothing split apart the dependencies.  No behavior changes.  There's more cleanup that could be done (particularly in naming), but I'd like to defer that to a later step.

@kubernetes/sig-cli @fabianofranz @AdoHe this is going to be a pain to rebase, so quick reviews are appreciated.
@ncdc @smarterclayton
2016-12-15 14:51:29 -08:00
Janet Kuo 05a1b3f5a0 Remove GroupMeta.Codec 2016-12-15 14:20:26 -08:00
Kubernetes Submit Queue 853fcc393e Merge pull request #38829 from ixdy/build-tools-rename-back
Automatic merge from submit-queue (batch tested with PRs 38788, 38821, 38829)

Rename build-tools/debs to build/debs

**What this PR does / why we need it**: PR #36129 merged after #38736, and thus created a few files under `build-tools/debs`, which then confused the test and release infra.

cc @madhusudancs @nikhiljindal
2016-12-15 13:57:20 -08:00
Kubernetes Submit Queue 15ce72e393 Merge pull request #38821 from whitlockjc/fix-dev-build-scripts
Automatic merge from submit-queue (batch tested with PRs 38788, 38821, 38829)

hack/dev-build-*: Run dev build instead of release build

The current dev-build-*.sh scripts do a full release build which means
running tests and also doing cross-platform builds.  This is unnecessary
and after discussing this in Slack it was suggested to either blow away
these files or fix them.  This should fix them.

/cc @ixdy, @mml, @thockin
2016-12-15 13:57:18 -08:00
Kubernetes Submit Queue d169d59565 Merge pull request #38788 from Random-Liu/fix-node-conformance-test
Automatic merge from submit-queue (batch tested with PRs 38788, 38821, 38829)

Node Conformance Test: Fix node conformance test.

The test suite could build on my desktop. However it is failing on jenkins.
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-node-kubelet-conformance/1

It turns out that `docker save $IMAGE -o $FILE` only works for docker 1.12. (My desktop is 1.12) For older version docker, we should use `docker save -o $FILE $IMAGE instead`. (Jenkins is using 1.9.1)

@timstclair Could you help me review this short PR? :)
2016-12-15 13:57:16 -08:00
Mike Danese 7945c437e5 kubeadm: support --discovery token:// 2016-12-15 13:54:49 -08:00
Mike Danese 690c7e578b kubeadm: refactor discovery behind an interface 2016-12-15 13:54:49 -08:00
Kubernetes Submit Queue 82edbf1ddc Merge pull request #38504 from skippbox/buildreadme
Automatic merge from submit-queue

Add build instructions for the impatient

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

* it adds a small section to build k8s for the impatient.
* it fixes a typo
* it removes the code-of-conduct file which was a redirect to the cncf code.

fixes part of #36655
2016-12-15 12:34:04 -08:00
Kubernetes Submit Queue 6b72259320 Merge pull request #38823 from bprashanth/svc_error_eater
Automatic merge from submit-queue

Don't eat 403 in service controller

I haven't done a stress run of Services e2es locally yet, but I did verify that this fixes the specific "stuck in pending bug"
2016-12-15 12:33:55 -08:00
deads2k 50f6733800 make kubectl factory rings 2016-12-15 15:18:16 -05:00
jianhuiz 13b76697a3 add generated federation clientsets for batch/Job 2016-12-15 11:38:16 -08:00
Jeff Grafton dd7c960aaf Rename build-tools/debs to build/debs 2016-12-15 11:10:23 -08:00
Kubernetes Submit Queue 32946c5bd0 Merge pull request #38820 from jszczepkowski/e2e-not-ready-nodes
Automatic merge from submit-queue (batch tested with PRs 38818, 38813, 38820)

E2E test lib: improved logging of not ready nodes.
2016-12-15 11:04:21 -08:00
Kubernetes Submit Queue 995f4ef2bf Merge pull request #38813 from deads2k/rbac-22-roles
Automatic merge from submit-queue (batch tested with PRs 38818, 38813, 38820)

update for controller RBAC roles

Role and binding updates from running e2e using RBAC during the tests in https://github.com/kubernetes/kubernetes/pull/38626

@sttts should be quick. No obvious typos.  Nothing that looks off.
2016-12-15 11:04:19 -08:00
Kubernetes Submit Queue 117e72aeb2 Merge pull request #38818 from jsafrane/aws-device-allocator
Automatic merge from submit-queue (batch tested with PRs 38818, 38813, 38820)

AWS: Add sequential allocator for device names.

On AWS, we should not reuse device names as long as possible, see https://aws.amazon.com/premiumsupport/knowledge-center/ebs-stuck-attaching/

> "If you specify a device name that is not in use by EC2, but is being used by the block device driver within the EC2 instance, the attachment of the EBS volume does not succeed and the EBS volume is stuck in the attaching state."

This patch adds a device name allocator that tries to find a name that's next to the last used device name instead of using the first available one. This way we will loop through all device names ("xvdba" .. "xvdzz") before a device name is reused.

Fixes: #31891

@wongma7, @gnufied, @childsb PTAL
2016-12-15 11:04:17 -08:00
bprashanth 98c7fe98e1 Don't eat 403 in service controller 2016-12-15 10:27:14 -08:00
jianhuiz c885dd40d3 update client generation scripts to include batch/Job for federation 2016-12-15 09:58:33 -08:00
Jeremy Whitlock c0b890d4bd hack/dev-build-*: Run dev build instead of release build
The current dev-build-*.sh scripts do a full release build which means
running tests and also doing cross-platform builds.  This is unnecessary
and after discussing this in Slack it was suggested to either blow away
these files or fix them.  This should fix them.
2016-12-15 10:35:16 -07:00
Jerzy Szczepkowski ec17af655f E2E test lib: improved logging of not ready nodes.
E2E test lib: improved logging of not ready nodes.
2016-12-15 18:23:18 +01:00
Jan Safranek 65f6bcb927 AWS: Add sequential allocator for device names.
On AWS, we should not reuse device names as long as possible, see
https://aws.amazon.com/premiumsupport/knowledge-center/ebs-stuck-attaching/

"If you specify a device name that is not in use by EC2, but is being used by
the block device driver within the EC2 instance, the attachment of the EBS
volume does not succeed and the EBS volume is stuck in the attaching state."

This patch adds a device name allocator that tries to find a name that's next
to the last used device name instead of using the first available one.
This way we will loop through all device names ("xvdba" .. "xvdzz") before
a device name is reused.
2016-12-15 17:22:19 +01:00
Kubernetes Submit Queue cbbe421db8 Merge pull request #38757 from linki/patch-2
Automatic merge from submit-queue

fix typo in apiserver

Fixes a small typo I stumbled upon today.
2016-12-15 07:13:57 -08:00
deads2k 6ab6975983 update for controller RBAC roles 2016-12-15 09:18:48 -05:00
sebgoa beb6220f11 Add build instructions for the impatient 2016-12-15 15:06:11 +01:00
Kubernetes Submit Queue 1981a654a4 Merge pull request #38711 from wojtek-t/get_with_options_in_kubelet
Automatic merge from submit-queue (batch tested with PRs 38803, 38711)

Use Get from cache in apiserver in kubelet

Ref #37473
2016-12-15 05:56:17 -08:00
Kubernetes Submit Queue 2e2661c403 Merge pull request #38803 from gmarek/kubemark-etcd-flags
Automatic merge from submit-queue

Kubemark etcd flags

Fix for #38770.

cc @shyamjvs
2016-12-15 05:38:38 -08:00
Kubernetes Submit Queue 59ad9a30ca Merge pull request #36060 from resouer/fix-service-affinity
Automatic merge from submit-queue

Add use case to service affinity

Also part of nits in refactoring predicates, I found the explanation of `serviceaffinity` in its comment is very hard to understand. So I added example instead here to help user/developer to digest it.
2016-12-15 04:10:08 -08:00
gmarek 40907930a3 Fix the kubemark fix 2016-12-15 10:26:39 +01:00
Kubernetes Submit Queue d9aed2c5ab Merge pull request #38793 from euank/hyperkube-jq
Automatic merge from submit-queue (batch tested with PRs 37190, 38793)

cluster/images/hyperkube: add jq for some volume plugins

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

Some flexvolume plugins use jq. See also https://github.com/coreos/bugs/issues/1706

It weighs in at about 400kb, so seems sane to include.

**Release note**:
```release-note
NONE
```

cc @luxas @pbx0
2016-12-14 23:39:51 -08:00
Kubernetes Submit Queue 275bed8b54 Merge pull request #37190 from brendandburns/xss
Automatic merge from submit-queue

Add 'X-Content-Type-Options: nosniff" to some error messages

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

@lavalamp @timstclair 

(though actually, it's not 100% clear to me that these functions are ever called anywhere...)
2016-12-14 23:32:37 -08:00
Brendan Burns 43251c92e1 Add 'X-Content-Type-Options: nosniff" to some error messages 2016-12-14 22:01:43 -08:00
Kubernetes Submit Queue 9eb82fadc4 Merge pull request #37920 from xuxinkun/fix-build-tools201612
Automatic merge from submit-queue (batch tested with PRs 36129, 37920)

fix kube::log::error in `start_rsyncd_container`.

fix kube::log::error of `start_rsyncd_container` in common.sh.
Signed-off-by: xuxinkun <xuxinkun@gmail.com>
2016-12-14 19:40:01 -08:00
Kubernetes Submit Queue f2eb14a8a7 Merge pull request #36129 from mikedanese/bzl-debs
Automatic merge from submit-queue (batch tested with PRs 36129, 37920)

bazel: build debs for kubelet and kubeadm

for comparison: https://github.com/kubernetes/release/tree/master/debian

cc @pipejakob
2016-12-14 19:39:59 -08:00
xuxinkun 29dc75abc2 fix kube::log::error in `start_rsyncd_container`.
Signed-off-by: xuxinkun <xuxinkun@gmail.com>
2016-12-15 10:00:19 +08:00
Kubernetes Submit Queue db867c0c9d Merge pull request #36396 from aveshagarwal/master-display-pod-node-selectors
Automatic merge from submit-queue (batch tested with PRs 38783, 36396)

Display pod node selectors with kubectl describe.

**What this PR does / why we need it**:
This PR fixes kubectl describe so that it now shows associated node selectors with pods.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
```

@kubernetes/rh-cluster-infra @kubernetes/kubectl
2016-12-14 17:54:52 -08:00
Kubernetes Submit Queue 68b93b05f3 Merge pull request #38783 from jessfraz/cleanup
Automatic merge from submit-queue (batch tested with PRs 38783, 36396)

hack/cherry_pick_pull.sh: cleanup patch files

this was driving me nuts.
it will now remove the patch files from /tmp
2016-12-14 17:54:49 -08:00
Patrick Baxter c8115baa48 cluster/images/hyperkube: add jq for some volume plugins 2016-12-14 16:16:02 -08:00
Mike Danese caa4a4304e bazel: build debs for kubelet and kubeadm 2016-12-14 16:11:58 -08:00
Kubernetes Submit Queue 3479522de5 Merge pull request #38701 from gmarek/routecontroller
Automatic merge from submit-queue (batch tested with PRs 38736, 38701)

Don't retry creating route if it already exists

Ref. #38618
2016-12-14 16:10:57 -08:00