Commit Graph

31549 Commits (5fe54ac9efda3b2bc15b01f49412be69ad07a8a6)

Author SHA1 Message Date
k8s-merge-robot 5fe54ac9ef Merge pull request #25640 from dims/fix-issue-7496
Automatic merge from submit-queue

kubectl should print usage at the bottom

Override the Usage: output using SetUsageTemplate. Just moved
the strings in the template to make sure we print Usage: at
the bottom of the output and not at the top.

Fixes issue #7496
2016-07-06 20:19:18 -07:00
k8s-merge-robot 4d91f0f763 Merge pull request #25137 from huang195/tls_user_emailaddress
Automatic merge from submit-queue

getting emailAddress from TLS cert

Kubernetes if using TLS cert to perform authentication will use the CommonName field of the cert as the authenticating user. In https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/auth/authenticator/request/x509/x509.go#L106, alternative methods are defined to use emailAddress or DNSName as the authenticating user. The method that uses the emailAddress is not comprehensive as this information can be encoded in different places of the certificate. This PR fixes this.
2016-07-06 19:45:01 -07:00
k8s-merge-robot 1c56319b79 Merge pull request #28534 from asalkeld/configmap-multi-ref
Automatic merge from submit-queue

Add spec.Name() to the configmap GetVolumeName()

This is to base the name on the volume not just on the
source configMap. If you have 2 volumes that both have the same
configMap as a source, the volume is see as being in the attached
state (it's state is looked up based on GetVolumeName()).

Fixes #28502
2016-07-06 19:07:45 -07:00
k8s-merge-robot 32ffa785d8 Merge pull request #28556 from madhusudancs/fed-gce-gci-readonly-var
Automatic merge from submit-queue

Copy FEDERATIONS_DOMAIN_MAP to a local variable since the helper script doesn't allow overwriting the existing variable.

cc @kubernetes/sig-cluster-federation 


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-07-06 18:33:00 -07:00
k8s-merge-robot 52e8d4f5cd Merge pull request #28536 from kubernetes/revert-28176-inode-check-dep
Automatic merge from submit-queue

Revert "Declare out of disk when there is no free inodes"

Reverts kubernetes/kubernetes#28176

Fixes #28481
2016-07-06 17:59:17 -07:00
k8s-merge-robot 6de30e64d3 Merge pull request #28521 from Random-Liu/fix-flake-pod-test
Automatic merge from submit-queue

E2E: Add UpdatePod function in e2e framework and change the test to use it.

Fix https://github.com/kubernetes/kubernetes/issues/28096.

Some e2e tests need to update pod, but the pod update is a bit complex because of potential conflict. #28096 happened just because the test only called pod `Update` once.

This PR move the update pod logic into a util function `UpdatePod` in e2e framework, and change the tests to use it.

Mark P2 because the original issue is P0, but in fact happens not quite frequently. :)

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

the test to use it.
2016-07-06 17:25:31 -07:00
k8s-merge-robot b167001de6 Merge pull request #28403 from vishh/known-issues
Automatic merge from submit-queue

Document known issues for v1.3.0
2016-07-06 16:13:16 -07:00
Madhusudan.C.S 2e308035f0 Copy FEDERATIONS_DOMAIN_MAP to a local variable since the helper script doesn't allow overwriting the existing variable. 2016-07-06 15:53:45 -07:00
k8s-merge-robot c0b67b62b2 Merge pull request #28402 from rmmh/test-owners
Automatic merge from submit-queue

Add test/test_owners.csv, for automatic assignment of test failures.

This file will be read by the munger -- see kubernetes/contrib#1264
    
This also includes a simple script to do minor automatic updates to the  CSV.

I'd like to get `update_owners.py` into a more usable state -- right now the CSV is based directly on the Google Sheets data. It has 9 outdated tests and is missing 80 new tests.

I can randomly assign new tests to people on kubernetes-maintainers, but are there any caveats to how the assignment should work? Should they be load balanced? Should some people in the group not receive issues? Etc.
2016-07-06 14:48:23 -07:00
k8s-merge-robot 567c64d1e2 Merge pull request #24992 from brandonweeks/docker_machine_regenerate_certs
Automatic merge from submit-queue

Test for certificate error and prompt to regenerate

This resolves an issue where if the `${DOCKER_MACHINE_NAME}` VM was ever removed from `docker-machine` the build process would enter an infinite loop, with the following error being redirected to `/dev/null`.

>Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.102:2376": open /Users/weeks/.docker/machine/machines/kube-dev/server.pem: no such file or directory You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'. Be advised that this will trigger a Docker daemon restart which will stop running containers.

Now the output is tested for the error string and if found prompts the user if they want to regenerate the certificate. Another option would be setting the `--force` flag on `docker-machine regenerate-certs`, so user intervention wouldn't be required.

/cc @mhbauer

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24992)
<!-- Reviewable:end -->
2016-07-06 14:48:18 -07:00
k8s-merge-robot 6c63460a2e Merge pull request #28406 from david-mcmahon/update-v1.2.3
Automatic merge from submit-queue

Updating release notes

    v1.2.2..v1.2.3
    v1.2.3..v1.2.4
    v1.2.4..v1.2.5
    v1.2.0..v1.3.0-alpha.1
    v1.3.0-alpha.1..v1.3.0-alpha.2
    v1.3.0-alpha.2..v1.3.0-alpha.3
    v1.3.0-alpha.3..v1.3.0-alpha.4
    v1.3.0-alpha.4..v1.3.0-alpha.5
    v1.3.0-alpha.5..v1.3.0-beta.1
    v1.3.0-beta.1..v1.3.0-beta.2
    v1.3.0-beta.2..v1.3.0-beta.3

First pass.
2016-07-06 14:48:13 -07:00
Madhusudan.C.S 5f01e8d335 Give sufficient permissions to kube-version-defs file to be able to source it during build. 2016-07-06 14:41:15 -07:00
Ryan Hitchman 616e938662 Address PR comments, randomly assign owners for new tests. 2016-07-06 13:22:53 -07:00
krousey 8c8c5d97ca Merge pull request #28540 from kubernetes/revert-28520-update-jwt
Revert "update jwt-go to v3.0.0-4-g01aeca5"
2016-07-06 11:19:39 -07:00
Random-Liu be8c7536ae Add standard UpdatePod function in framework, and change
the test to use it.
2016-07-06 11:04:34 -07:00
krousey 7f456e49c9 Revert "update jwt-go to v3.0.0-4-g01aeca5" 2016-07-06 10:41:50 -07:00
Brandon Weeks d3208c6c3f
Test for certificate error and prompt to regenerate
If the docker-machine certificates get in a bad state, the current behavior
causes an infinite loop waiting for `docker-machine env` to return. Now it will
echo the certificate error and prompt the user to regenerate.
2016-07-06 10:27:16 -07:00
k8s-merge-robot c0579af684 Merge pull request #27844 from hodovska/1336632-hpa_flag_tips
Automatic merge from submit-queue

kubectl/autoscale: fix tips when validating --max flag

While autoscaling, it was not clear what was the reason of failed --max flag validation.
This fix divides reasons to:
- value not provided or too low
- value of max is lower than value of min

bug 1336632
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1336632
2016-07-06 08:40:14 -07:00
ronnielai 5d05fbad9b Revert "Declare out of disk when there is no free inodes" 2016-07-06 08:19:09 -07:00
k8s-merge-robot f78da7c273 Merge pull request #28400 from dubstack/fix-typo
Automatic merge from submit-queue

Fix minor typo

Fix for a really minor typo in development.md

@thockin PTAL.
2016-07-06 08:04:05 -07:00
Angus Salkeld d7150bfaea Add spec.Name() to the configmap GetVolumeName()
This is to base the name on the volume not just on the
source configMap. If you have 2 volumes that both have the same
configMap as a source, the volume is see as being in the attached
state (it's state is looked up based on GetVolumeName()).

See bug #28502
2016-07-06 16:39:43 +02:00
k8s-merge-robot 607515bbce Merge pull request #28520 from colemickens/update-jwt
Automatic merge from submit-queue

update jwt-go to v3.0.0-4-g01aeca5

<!--
Checklist for submitting a Pull Request

Please remove this comment block before submitting.

1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md).
2. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md).
3. If you want this PR to automatically close an issue when it is merged,
   add `fixes #<issue number>` or `fixes #<issue number>, fixes #<issue number>`
   to close multiple issues (see: https://github.com/blog/1506-closing-issues-via-pull-requests).
4. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes) in the block below.
-->

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
**update jwt-go to v3.0.0-4-g01aeca5**
new jwt-go rev: 01aeca54ebda6e0fbfafd0a524d234159c05ec20

---

I need this to add Azure cloudprovider since the Azure SDK uses the newer JWT library (and the API changed).

Also relevant for https://github.com/kubernetes/kubernetes/issues/28180.
2016-07-06 07:02:36 -07:00
k8s-merge-robot 1ff33c576d Merge pull request #28474 from hongchaodeng/lb
Automatic merge from submit-queue

selector: make sure value of GT and LT is integer

GT and LT in selector has been introduced in Node Affinity feature: https://github.com/kubernetes/kubernetes/pull/19758, https://github.com/kubernetes/kubernetes/pull/18261

According to the API:

>  If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer.

But the implementation has parsed it as float64:
ef0c9f0c5b/pkg/labels/selector.go (L183)

Modeling integer as float is dangerous. We don't even have fixed precision guarantee when doing comparison.

This PR is to get rid of this pre-optimization and convert **integer** to int64.
2016-07-06 06:22:11 -07:00
k8s-merge-robot 58dc3ba31d Merge pull request #28217 from kargakis/simplify-rollbacker-interface
Automatic merge from submit-queue

kubectl: simplify Rollbacker interface

@kubernetes/kubectl
2016-07-06 05:23:41 -07:00
k8s-merge-robot 145da49cf7 Merge pull request #28494 from wojtek-t/integration_namespace_4
Automatic merge from submit-queue

Finish migration of integration tests to separate namespaces

This is also making the logs from integration tests debuggable and understandable.
2016-07-06 02:10:08 -07:00
k8s-merge-robot 002be45424 Merge pull request #28506 from hongchaodeng/cleanup
Automatic merge from submit-queue

allocator ETCD: remove unused Refresh()
2016-07-06 01:34:17 -07:00
Cole Mickens db006d6e6b fix serviceaccount's usage of jwt-go
update pkg/serviceaccount for v3.x jwt-go.
2016-07-05 20:48:36 -07:00
Cole Mickens 49d5836782 bump(github.com/dgrijalva/jwt-go): 01aeca54ebda6e0fbfafd0a524d234159c05ec20 2016-07-05 20:48:28 -07:00
dubstack e8cc77487c Fix minor typo 2016-07-05 20:00:41 -07:00
k8s-merge-robot 203e1e9663 Merge pull request #26446 from mbruzek/juju-master-worker
Automatic merge from submit-queue

Implementing a proper master/worker split in the juju cluster code.

```
release-note-none
```

General updates to the cluster/juju Kubernetes provider, to bring it up to date.

Updating the skydns templates to version 11
Updating the etcd container definition to include arch.
Updating the master template to include arch and version for hyperkube container.
Adding dns_domain configuration options.
Adding storage layer options.

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-07-05 18:50:40 -07:00
Wojciech Tyczynski 4fa3aba0c2 Get rid of DeleteAllEtcdKeys 2016-07-05 22:10:47 +02:00
Hongchao Deng 8582ebb4be allocator ETCD: remove unused Refresh() 2016-07-05 12:46:53 -07:00
k8s-merge-robot 5e7c309b29 Merge pull request #25473 from andreykurilin/get_kube
Automatic merge from submit-queue

Check existence of kubernetes dir for get-kube.sh

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

There are a lot of references to https://get.k8s.io/ over the internet.
Most of such references do not describe KUBERNETES_SKIP_DOWNLOAD env variable
and newbies can get into a situation described below:

- execute `wget -q -O - https://get.k8s.io | bash`
- receive a failure due too missed packages or some configs
- fix the issue
- try again `wget -q -O - https://get.k8s.io | bash`

In this case, get-kube.sh will not check that kubernetes directory already
exist and repeat download again.
Lets make get-kube.sh more user-friendly and check existence of kubernetes dir
2016-07-05 11:27:47 -07:00
Matt Bruzek b45002b2b2 Implementing a proper master/worker split in k8s.py
Updating the skydns templates to version 11
Updating the etcd container definition to include arch.
Updating the master template to include arch and version for hyperkube container.
Adding dns_domain configuration options.
Adding storage layer options.
Fixing underscore problem and adding exceptions.

Fixing the underscore flag errors.
2016-07-05 11:16:41 -05:00
k8s-merge-robot f9a2de7248 Merge pull request #28490 from wojtek-t/integration_namespace_3
Automatic merge from submit-queue

Migrate most of the remaining integration tests to run in dedicated namespace (when possible).
2016-07-05 08:35:51 -07:00
k8s-merge-robot fd523abd57 Merge pull request #27958 from aveshagarwal/master-node-e2e-issues
Automatic merge from submit-queue

Fix node e2e issues on selinux enabled systems

It fixes following 3 node e2es:

```
[Fail] [k8s.io] Container Runtime Conformance Test container runtime conformance blackbox test when starting a container that exits [It] it should run with the expected status [Conformance] 
/root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:114

[Fail] [k8s.io] Kubelet metrics api when querying /stats/summary [It] it should report resource usage through the stats api 
/root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/kubelet_test.go:158
```
```
[Fail] [k8s.io] Container Runtime Conformance Test container runtime conformance blackbox test when starting a container that exits [It] should report termination message if TerminationMessagePath is set [Conformance]
/root/upstream-code/gocode/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:150
```
@kubernetes/rh-cluster-infra
2016-07-05 08:00:25 -07:00
Davanum Srinivas 91f16364b8
kubectl should print usage at the bottom
Override the Usage: output using SetUsageTemplate. Just moved
the strings in the template to make sure we print Usage: at
the bottom of the output and not at the top.

Fixes issue 7496
2016-07-05 10:08:51 -04:00
k8s-merge-robot 4ee877c226 Merge pull request #28379 from deads2k/allow-late-joins
Automatic merge from submit-queue

allow handler to join after the informer has started

This allows an event handler to join after a SharedInformer has started.  It can't add any indexes, but it can add its reaction functions.

This works by 
 1. stopping the flow of events from the reflector (thus stopping updates to our store)
 1. registering the new handler
 1. sending synthetic "add" events to the new handler only
 1. unblocking the flow of events

It would be possible to 
 1. block
 1. list
 1. add recorder
 1. unblock
 1. play list to as-yet unregistered handler
 1. block
 1. remove recorder
 1. play recording
 1. add new handler
 1. unblock

But that is considerably more complicated.  I'd rather not start there since this ought to be the exception rather than the rule.

@wojtek-t who requested this power in the initial review
@smarterclayton @liggitt I think this resolves our all-in-one ordering problem.
@hongchaodeng since this came up on the call
2016-07-05 06:49:10 -07:00
k8s-merge-robot b60de6c497 Merge pull request #28495 from lixiaobing10051267/mastermover
Automatic merge from submit-queue

"Mover" should be "Moreover"

In file docs/proposals/apiserver-watch.md, line #108, "Mover, this will not require any changes in other parts of the code.", here "Mover" should be "Moreover".
2016-07-05 06:07:51 -07:00
k8s-merge-robot 65c29daf19 Merge pull request #28179 from deads2k/dedup-workqueue-requeue
Automatic merge from submit-queue

dedup workqueue requeuing

Updates `workqueue.AddAfter` to only perform the add for the earliest requested requeue operation.  An earlier time inserts in the earlier slot and removes the old one.  A later time is ignored.

When using this conjunction with an `AddRateLimited` method, you get charged for the additional retry even though you're only queue once.  

This keeps requeues from multiplying for every add.

@liggitt
2016-07-05 06:07:45 -07:00
k8s-merge-robot 61a92ef75a Merge pull request #28441 from smarterclayton/reflect_check
Automatic merge from submit-queue

ObjectReflectDiff has an incorrect array index comparison

Is comparing the wrong field for bounds.

@deads2k
2016-07-05 05:33:28 -07:00
k8s-merge-robot a75cb46e5b Merge pull request #25463 from asalkeld/master
Automatic merge from submit-queue

Add command "kubectl config get-contexts"

```release-note
* A new command "kubectl config get-contexts" has been added.
```

fixes #25383
2016-07-05 05:33:23 -07:00
deads2k 56598898e1 dedup workqueue requeuing 2016-07-05 07:44:52 -04:00
lixiaobing10051267 4608539c39 "Mover" should be "Moreover" 2016-07-05 19:39:48 +08:00
deads2k 099b7f8fb2 allow handler to join after the informer has started 2016-07-05 07:38:08 -04:00
Wojciech Tyczynski 122f97d29b Migrate remaining integration tests 2016-07-05 13:34:27 +02:00
Wojciech Tyczynski c2126f6820 Migrate garbage collection integration tests 2016-07-05 13:34:27 +02:00
Wojciech Tyczynski 3c9b68698d Migrate scheduler integration tests 2016-07-05 13:34:26 +02:00
Wojciech Tyczynski 13b2387c0c Migrate PersistentVolume integration tests 2016-07-05 13:34:26 +02:00
k8s-merge-robot b4ee63f6a1 Merge pull request #28468 from wojtek-t/integration_namespace_2
Automatic merge from submit-queue

Migrate some integration tests to run in dedicated namespace.
2016-07-05 02:56:32 -07:00