Commit Graph

27268 Commits (d12a4d6d5a2a638ffc728af2ff0ba5d512d8cbaa)

Author SHA1 Message Date
k8s-merge-robot 372c1647b8 Merge pull request #23440 from mbruzek/juju-kube-up
Automatic merge from submit-queue

Juju kube up

I found some problems with the kube-up script that this pull request addresses. We didn't have the kubectl binary in the correct location. 

Just changing where we download the package from the master, and fixing the kube-down.sh script to remove those files.
2016-04-02 08:19:26 -07:00
k8s-merge-robot 3197f31cc6 Merge pull request #23554 from nikhiljindal/swaggerInRun
Automatic merge from submit-queue

genericapiserver: Moving InstallSwaggerAPI to Run

Ref https://github.com/kubernetes/kubernetes/pull/21190#discussion_r57494673

Moving InstallSwaggerAPI() from InstallAPIGroups() to Run(). This allows the use of InstallAPIGroups() multiple times or using InstallAPIGroup() directly.

cc @jianhuiz @kubernetes/sig-api-machinery
2016-04-02 08:19:25 -07:00
k8s-merge-robot e9c57e6970 Merge pull request #23776 from justinsb/aws_no_ephemeral
Automatic merge from submit-queue

AWS kube-up: tolerate a lack of ephemeral volumes

Some users have requested the ability to _not_ use ephemeral volumes (local instance storage), but this also highlighted the fact that we likely fail to start on instance types with no instance storage (e.g. the c4 class instances).

Confirming this fix, and then going to confirm that e.g. c4 is broken.  If so this will be a cherry-pick candidate.
2016-04-02 07:45:44 -07:00
k8s-merge-robot 9c2501cdf5 Merge pull request #23552 from deads2k/extend-authz-attribs
Automatic merge from submit-queue

add missing attributes to authorization interface

Plumb through missing attributes for authorization decisions.  The request parser picked them up a while back, but they were never wired up in kube.

This simply allows authorizers to use them, it doesn't require them to.

@kubernetes/kube-iam
2016-04-02 07:45:43 -07:00
k8s-merge-robot df20dfb2e4 Merge pull request #23548 from ncdc/fix-23078
Automatic merge from submit-queue

Check claimRef UID when processing a recycled PV, take 2

Reorder code a bit so it doesn't allow a case where you get some error other than "not found"
combined with a non-nil Claim.

Add test case.

cc @kubernetes/rh-cluster-infra @kubernetes/rh-storage @liggitt
2016-04-02 05:58:55 -07:00
k8s-merge-robot b3eef932d8 Merge pull request #23509 from XiaoningDing/ube-apiserver
Automatic merge from submit-queue

duplicate kube-apiserver to federated-apiserver

duplicate the kube-apiserver source code to ube-apiserver and update references
cluster specific api objects will be in separate PRs

#19313,  #21190
https://github.com/kubernetes/kubernetes/pull/21190#issuecomment-201551176
@nikhiljindal
2016-04-02 05:24:43 -07:00
k8s-merge-robot b43ccd6e2b Merge pull request #23506 from Random-Liu/new-docker-client
Automatic merge from submit-queue

Kubelet: Start using the official docker engine-api

For #23563.

This is the **first step** in the roadmap of switching to docker [engine-api](https://github.com/docker/engine-api).
In this PR, I keep the old `DockerInterface` and implement it with the new engine-api.
With this approach, we could switch to engine-api with minimum change, so that we could:
* Test the engine-api without huge refactoring.
* Send following PRs to refactor functions in `DockerInterface` separately so as to avoid a huge change in one PR.

I've tested this PR locally, it passed all the node conformance test:
```
make test_e2e_node

Ran 19 of 19 Specs in 823.395 seconds
SUCCESS! -- 19 Passed | 0 Failed | 0 Pending | 0 Skipped PASS

Ginkgo ran 1 suite in 13m49.429979585s
Test Suite Passed
```
And it also passed the jenkins gce e2e test:
```
go run hack/e2e.go -test -v --test_args="--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]"

Ran 161 of 268 Specs in 4570.214 seconds
SUCCESS! -- 161 Passed | 0 Failed | 0 Pending | 107 Skipped PASS

Ginkgo ran 1 suite in 1h16m16.325934558s
Test Suite Passed
2016/03/25 15:12:42 e2e.go:196: Step 'Ginkgo tests' finished in 1h16m18.918754301s
```

I'm writing the design document, and will post the switching roadmap in an umbrella issue soon.

@kubernetes/sig-node
2016-04-02 04:51:33 -07:00
Thien-Thi Nguyen dd7b94db20 Fix typo 2016-04-02 12:46:57 +02:00
k8s-merge-robot f5c93c8ddc Merge pull request #23472 from wojtek-t/fix_object_meta_for
Automatic merge from submit-queue

Switch from api.ObjectMetaFor to meta.Accessor in most of places

Fix #23278

@smarterclayton @lavalamp
2016-04-02 02:33:40 -07:00
k8s-merge-robot c7af842fac Merge pull request #23766 from mikebrow/docs-minor-edit-testing-guide
Automatic merge from submit-queue

minor edits to testing guide

Noted a few small issues going through the getting started testing guide.

Cheers, Mike

Signed-off-by: mikebrow <brownwm@us.ibm.com>
2016-04-01 23:17:37 -07:00
k8s-merge-robot c927790cc6 Merge pull request #22877 from fabianofranz/mark_filename_flags_for_completions
Automatic merge from submit-queue

Mark filename flags for completions

Adds filename bash completion to some flags that were missing.
2016-04-01 22:38:54 -07:00
k8s-merge-robot 5c2f758517 Merge pull request #17590 from fabianofranz/cli_homedir_on_windows
Automatic merge from submit-queue

Use correct home directory on Windows

As of now the `kubectl` config mechanism that saves/loads `~/.kube/config` is broken on Windows, saving the config file in the *current* directory instead of the user's *home* dir. This happens because most Windows don't respect the `HOME` environment variable. 

This PR changes the config file loading mechanism to use the recommended way to detect the user home on Windows (`HOMEDRIVE`+`HOMEPATH` or `USERPROFILE`), and adds a migration for users that might be currently relying on existing config files.
2016-04-01 22:00:11 -07:00
Justin Santa Barbara f43f398cad AWS kube-up: Allow BLOCK_DEVICE_MAPPINGS_BASE to be empty
We rename it to EPHEMERAL_BLOCK_DEVICE_MAPPINGS, and we also change the value
so that it starts with a `,`, instead of always inserting a comma before it.
In this way the value can be empty.

Also, if the user sets the (currently experimental) KUBE_AWS_STORAGE
environment variable to be "ebs", then we will not mount any instance storage
which will cause the machines to use EBS storage instead.
2016-04-01 22:27:28 -04:00
Justin Santa Barbara 1c3f706383 AWS: Don't error if there are no ephemeral disks
format-disks used to run with non-strict bash semantics, but this changed in
1.2 as we now merge it into the GCE script, so pipefail and errexit are both
set.

However, the way we list the ephemeral disks, by piping to grep, would cause an
exit code of 2 if there were no ephemeral disks.

Tolerate failure here by add `|| true`.  The metadata service call is unlikely
to fail, so we continue to ignore that possibility.
2016-04-01 22:27:20 -04:00
k8s-merge-robot 9b0ea8ff78 Merge pull request #23767 from david-mcmahon/121notes
Automatic merge from submit-queue

Add release notes for v1.2.1 and cleanup/unify formatting/layout.
2016-04-01 17:11:29 -07:00
k8s-merge-robot 3b65927050 Merge pull request #16451 from ncdc/exec-interop-testing
Automatic merge from submit-queue

Refactor streaming code to support interop testing

Refactor exec/attach/port forward client and server code to better
support interop testing of different client and server subprotocol
versions.

Fixes #16119
2016-04-01 17:11:26 -07:00
k8s-merge-robot 7166754d07 Merge pull request #22006 from derekwaynecarr/vagrant_doc_fix
Automatic merge from submit-queue

Update vagrant developer guide for where logs are located

Fixes https://github.com/kubernetes/kubernetes/issues/21915
2016-04-01 16:28:11 -07:00
Fabio Yeon e278d63d87 Merge pull request #23764 from ramitsurana/patch-4
updating broken url
2016-04-01 15:29:18 -07:00
David McMahon 30c95d1d06 Add release notes for v1.2.1 and cleanup/unify formatting/layout. 2016-04-01 15:21:13 -07:00
mikebrow 23fddb3a08 minor edits to testing guide
Signed-off-by: mikebrow <brownwm@us.ibm.com>
2016-04-01 16:48:14 -05:00
k8s-merge-robot 1521aa8a86 Merge pull request #23550 from luxas/fix_hyperkube_certs
Automatic merge from submit-queue

Fix so setup-files don't recreate/invalidate certificates that already exist

Fixes: #23197 and a lot of other DNS and dashboard issues

This is quite critical for `docker`-based users and should be considered as a **cherrypick-candidate** as it makes a lot of people wonder why Dashboard and/or DNS doesn't work. Example: https://github.com/kubernetes/dashboard/issues/374

Earlier when you shut your `docker.md` cluster down and started it again, all ServiceAccounts became invalidated by `setup-files` that happily ran once again and replaced all files. That made `apiserver` and `controller-manager` pick up the new certs (or there was a race condition, they _could_ have picked up the old certs too, but that's unlikely) and the old certs were put into `/var/run/secrets` because the ServiceAccount's Secrets were stored in etcd, which `setup-files` didn't touch.

@fgrzadkowski @huggsboson @thockin @mikedanese @vishh @pwittrock @eparis @bgrant0607
2016-04-01 14:47:17 -07:00
k8s-merge-robot d0155982aa Merge pull request #23736 from pwittrock/flaky
Automatic merge from submit-queue

node e2e retry gcr.io failures
2016-04-01 14:13:05 -07:00
k8s-merge-robot 224684c4bc Merge pull request #23746 from derekwaynecarr/registry_unavailable
Automatic merge from submit-queue

A pod never terminated if a container image registry was unavailable

Fixes https://github.com/kubernetes/kubernetes/issues/23742
Fixes https://github.com/kubernetes/kubernetes/issues/22045

Pods will now show proper status when this happens as well:

```
$ cluster/kubectl.sh get pods --all-namespaces 
NAMESPACE   NAME                   READY     STATUS                RESTARTS   AGE
test        foo-4072956304-1g8qs   0/1       RegistryUnavailable   0          7s
test        foo-4072956304-i045g   0/1       RegistryUnavailable   0          7s
test        foo-4072956304-qem2n   0/1       RegistryUnavailable   0          7s
```

Where as previously they would never report a reason.

I also removed the "temporary" part of the message because we have no idea if its temporary or permanent.

/cc @kubernetes/sig-node @kubernetes/rh-cluster-infra
2016-04-01 14:13:03 -07:00
Ramit Surana 383b2029f8 updating broken url
Slack URL is broken.
2016-04-02 02:35:57 +05:30
k8s-merge-robot 24111ab31f Merge pull request #23555 from david-mcmahon/cherrypicksdoc
Automatic merge from submit-queue

Clarify labeling states on proposed cherrypicks.

Modernized the examples.
2016-04-01 13:33:49 -07:00
k8s-merge-robot c874d2809f Merge pull request #23436 from AdoHe/kubelet_cluster_dns
Automatic merge from submit-queue

update kubelet cluster-dns doc

refer #23320 for more detail. @thockin ptal.
2016-04-01 13:33:48 -07:00
k8s-merge-robot e2d5fc86d9 Merge pull request #23419 from david-mcmahon/changelog
Automatic merge from submit-queue

Add a TOC to CHANGELOG.md.
2016-04-01 13:33:46 -07:00
David McMahon 823514d7be Add a TOC and a comment placeholder for adding new releases. 2016-04-01 12:27:25 -07:00
Fabiano Franz 9ddacfa25f Mark filename flags for completions 2016-04-01 16:14:36 -03:00
Fabio Yeon bf07a6f5e1 Merge pull request #23452 from david-mcmahon/mungedocs
Add --norecurse bool to allow mungedocs to process kube root.
2016-04-01 12:06:56 -07:00
Jeff Grafton d7f7c7796c Merge pull request #23415 from ixdy/upload-to-gcs-script
Refactor upload-started.sh and upload-finished.sh into upload-to-gcs.sh
2016-04-01 11:54:12 -07:00
k8s-merge-robot 9e14d6075c Merge pull request #23700 from gmarek/density
Automatic merge from submit-queue

Make total pod throughput in density test more readable
2016-04-01 11:32:51 -07:00
Lucas Käldström 858b9539d5 Fix so setup-files don't recreate/invalidate certificates that already exist 2016-04-01 21:23:58 +03:00
Matt Bruzek 64d849e4bb Unzipping the kubectl package to platforms so the validation script can find kubectl. 2016-04-01 13:19:17 -05:00
derekwaynecarr eeeccd0a67 A pod never terminated if a container image registry was unavailable 2016-04-01 13:42:23 -04:00
Andy Goldstein 4551ba6b53 Refactor exec code to support version skew testing
Refactor exec/attach client and server code to better support interoperability testing of different
client and server subprotocol versions.
2016-04-01 13:05:50 -04:00
Phillip Wittrock 015b9a6489 Retry failed image pulls. Closes #23669. 2016-04-01 09:48:19 -07:00
k8s-merge-robot a49d5c1fd0 Merge pull request #23714 from wojtek-t/dont_run_without_watch_cache
Automatic merge from submit-queue

Don't run integration tests without watch cache.

@lavalamp - FYI
2016-04-01 09:31:34 -07:00
Phillip Wittrock 8002e10fbb node e2e Output failed health checks as string not bytes 2016-04-01 09:20:30 -07:00
gmarek be3a5d83bb Make total pod throughput in density test more readable 2016-04-01 17:48:55 +02:00
AdoHe 1b305ee3bd update kubelet cluster-dns doc 2016-04-01 11:34:34 -04:00
k8s-merge-robot 14f5eb458d Merge pull request #23454 from wonderfly/bump_timeouts
Automatic merge from submit-queue

Migrate gke-trusty test jobs to 1.2

Following up #23100 and #23139, #23319, migrate all gke-trusty jobs to the
`release-1.2` branch, add parallel and subnet test jobs, and bump timeouts
accordingly.

Tested with `jenkins-jobs test`. Manually diff'ed gke-trusty jobs against their equivalent gke jobs. For example,

```
# diff /tmp/jobs0324/kubernetes-e2e-gke-test /tmp/jobs0324/kubernetes-e2e-gke-trusty-test
4c4
<   <description>Run E2E tests on GKE test endpoint. Test owner: GKE on-call.&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
---
>   <description>Run E2E tests on GKE test endpoint. Test owner: wonderfly@google.com.&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
49c49
< export PROJECT=&quot;k8s-jkns-e2e-gke-test&quot;
---
> export PROJECT=&quot;kubekins-e2e-gke-trusty-test&quot;
51a52
> export E2E_NAME=&quot;jkns-gke-e2e-test-trusty&quot;
228c229
<       <recipientList>$DEFAULT_RECIPIENTS</recipientList>
---
>       <recipientList>wonderfly@google.com,qzheng@google.com</recipientList>
```

@spxtr @roberthbailey @ihmccreery Can you review this?
cc/ @andyzheng0831
2016-04-01 06:38:56 -07:00
k8s-merge-robot 9105a6abcc Merge pull request #23445 from ncdc/go16-portforward-e2e
Automatic merge from submit-queue

Update port forward e2e for go 1.6

Only close the stdout/stderr pipes from kubectl port-forward when we're truly done with the command,
instead of as soon as runPortForward exits.

Also try to gracefully stop kubectl port-forward via SIGINT, instead of always sending SIGKILL, as
this will help avoid spdy goroutine leaks in the Kubelet.

Ref #22149 

cc @smarterclayton @kubernetes/rh-cluster-infra
2016-04-01 06:05:15 -07:00
k8s-merge-robot fa8d72e35d Merge pull request #23358 from aveshagarwal/master-jsonpath-fix
Automatic merge from submit-queue

Fix jsonpath to handle maps with key of nonstring types
2016-04-01 05:31:03 -07:00
k8s-merge-robot c6e995a824 Merge pull request #23558 from andyzheng0831/enhance
Automatic merge from submit-queue

Trusty: Regional release .tar.gz support

@zmerlynn and @roberthbailey please review it. This change is to support the feature added in PR #22234. The entire logic is pretty much the same as in #22234, with only few minor changes in implementation.

I had manually run e2e tests with "export RELEASE_REGION_FALLBACK=true" on two clusters: (1) Trusty on master nodes on ContainerVM; (2) Master and nodes all on trusty. All tests are green. I don't figure out a way to simulate regional fallback. But I did test the function download_or_bust() out-of-box.

cc/ @wonderfly @dchen1107 @fabioy FYI.
2016-04-01 03:39:08 -07:00
David McMahon d7c80befaf Clarify labeling states on proposed cherrypicks.
Sync the examples with the scripts usage so we don't need to update this
doc with every new branch.

Supporting updates to docs/devel/pull-requests.md#release-notes.
2016-03-31 19:02:25 -07:00
k8s-merge-robot 07929972a3 Merge pull request #18835 from brendandburns/3rdparty
Automatic merge from submit-queue

Add support for 3rd party objects to kubectl

@deads2k @jlowdermilk

Instructions for playing around with this:

Run an apiserver with third party resources turned on (`--runtime-config=extensions/v1beta1=true,extensions/v1beta1/thirdpartyresources=true`)

Then you should be able to:

```
kubectl create -f rsrc.json
```

```json
{
  "metadata": {
    "name": "foo.company.com"
  },
  "apiVersion": "extensions/v1beta1",
  "kind": "ThirdPartyResource",
  "versions": [
    {
      "apiGroup": "group",
      "name": "v1"
    },
    {
      "apiGroup": "group",
      "name": "v2"
    }
  ]
}
```

Once that is done, you should be able to:

```
curl http://<server>/apis/company.com/v1/foos
```

```
curl -X POST -d @${HOME}/foo.json http://localhost:8080/apis/company.com/v1/namespaces/default/foos
```

```json
{
  "kind": "Foo",
  "apiVersion": "company.com/v1",
  "metadata": {
    "name": "baz"
  },
  "someField": "hello world",
  "otherField": 1
}
```

After this PR, you can do:

```
kubectl create -f foo.json
```

```
kubectl get foos
```

etc.
2016-03-31 18:09:56 -07:00
k8s-merge-robot 421249785d Merge pull request #23582 from zhouhaibing089/typo_fix
Automatic merge from submit-queue

fix the gcfg typo

little fix in the openstack cloud provider.
2016-03-31 17:28:37 -07:00
k8s-merge-robot f8ea3fab53 Merge pull request #23427 from wojtek-t/conversions_with_framework_4
Automatic merge from submit-queue

Migrate to the new conversion generator - part1

This PR contains two commits:
- few more fixes to the generator
- migration of the pkg/api/v1 to use the new generator

The second commit is big, but I reviewed the changes and they contain:
- conversions between types that we didn't even generating conversion between
- changes in how we handle maps/pointers/slices - previously we were explicitly referencing fields, now we are using "shadowing in, out" to make the code more generic
- lack of auto-generated method for ReplicationControllerSpec (because these types are different (*int vs int for Replicas) and a preexisting conversion already exists

Most of issues in the first commit (e.g. adding references to "in" and "out" for slices/maps/points) were discovered by our tests. So I'm pretty confident that this change is correct now.
2016-03-31 17:28:36 -07:00
Mike Metral 022c39e5d7 add corekube 2016-03-31 17:21:14 -07:00