k8s-merge-robot
81c8fe37e6
Merge pull request #26598 from janetkuo/3rd-party-error-logs
...
Automatic merge from submit-queue
Add more information when throwing errors in discoverying 3rd party resources
#26425
[]()
2016-06-25 09:25:58 -07:00
k8s-merge-robot
99951007ff
Merge pull request #26539 from ripcurld00d/fix_json_template_url
...
Automatic merge from submit-queue
Update the jsonpath template URL
It seems like http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md redirects to http://kubernetes.io/docs/user-guide/jsonpath/ .
Therefore, updating to the new URL where is required.
Relate to https://github.com/openshift/origin/pull/9013
2016-06-25 08:17:31 -07:00
k8s-merge-robot
7c355e18a7
Merge pull request #25085 from metral/recursive-edit
...
Automatic merge from submit-queue
enable recursive processing in kubectl edit
This PR was split out of https://github.com/kubernetes/kubernetes/pull/23673 per @deads2k's suggestion: https://github.com/kubernetes/kubernetes/pull/23673#discussion_r61291178
It makes use of the recursive processing of a directory in `kubectl edit`
2016-06-24 23:59:54 -07:00
Sylwester Brzeczkowski
a558cadedd
Fix attach command for InitContainers
2016-06-24 14:35:02 +02:00
Dominika Hodovska
59db75f893
kubectl/autoscale: fix tips when validating --max flag
...
bug 1336632
Bugzilla link https://bugzilla.redhat.com/show_bug.cgi?id=1336632
2016-06-22 09:51:15 +02:00
Mike Metral
6b172657b0
clarify recursive flag description
2016-06-17 08:35:44 -07:00
Dr. Stefan Schimanski
734f05057e
Add pod-terminated check to kubectl-exec
...
Fixes https://github.com/openshift/origin/issues/8472#event-681794952
2016-06-16 19:44:47 +02:00
deads2k
ac64404d86
let patch use local file content to mutate
2016-06-14 14:38:00 -04:00
k8s-merge-robot
0d02f8c0f6
Merge pull request #26557 from AdoHe/patch_retry
...
Automatic merge from submit-queue
kubectl apply retry stale resource version
```release-note
kubectl apply: retry applying a patch if a version conflict error is encountered
```
[]()
fixes #15493
@pwittrock I just got my original implementation back, ptal.
2016-06-13 10:13:27 -07:00
Dr. Stefan Schimanski
65e2e63170
Set AttachOptions.CommandName from kubectl run using corba CommandPath
...
This sets AttachOptions.CommandName dynamically depending on the corba Command
hierarchy. If the root command is named e.g. "oc" (for the OpenShift cli) this
will result in "oc attach" instead of the static "kubectl attach" before this
patch.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1341450
2016-06-13 17:16:35 +02:00
k8s-merge-robot
2ef20b41f6
Merge pull request #26686 from metral/fix-get-output
...
Automatic merge from submit-queue
fix recursive & non-recursive kubectl get of generic output format
This PR fixes the issues with `kubectl get` in https://github.com/kubernetes/kubernetes/issues/26466
Changes made:
- fix printing when using the generic output format in both non-recursive & recurvise settings to ensure that errors are being shown
- add tests to check printing generic output in a **non-recursive** setting with non-existent pods
- clean up the **recursive** `kubectl get` tests
/cc @janetkuo
2016-06-11 14:26:31 -07:00
Boaz Shuster
d6f69c0f22
Update the jsonpath template URL
2016-06-10 12:22:36 +03:00
Piotr Szczesniak
1818b5b3fc
Added hpa/v1 generator to kubectl autoscale
2016-06-10 09:26:35 +02:00
k8s-merge-robot
5a5c490a43
Merge pull request #27057 from janetkuo/kubectl-run-server-discovery
...
Automatic merge from submit-queue
Don't ignore error when Discovery().ServerResources() in kubectl run
Ref #27014
This doesn't fix the flake directly, but expose the error happened when the flake happens.
@kubernetes/kubectl @caesarxuchao
[]()
2016-06-08 23:49:04 -07:00
AdoHe
69bcdc20ff
kubectl apply retry stale resource version
2016-06-09 00:14:17 -04:00
Matt Liggett
d09af4a1d6
Stop 'drain' deleting pods with local storage.
...
Unless forced with --delete-local-data. Also a refactoring of the
kubectl drain logic that selects/rejects pods and produces error/warning
messages.
2016-06-08 14:59:03 -07:00
Janet Kuo
75c3cbcbfb
Don't ignore error when Discovery().ServerResources() in kubectl run
2016-06-08 10:34:09 -07:00
Michail Kargakis
886014b1a3
kubectl: fix sort logic for logs
...
Use a separate sorting algorithm for kubectl logs that sorts from older
to newer instead of the other way that ActivePods is doing.
2016-06-07 10:52:42 +02:00
k8s-merge-robot
421c16addd
Merge pull request #25894 from brendandburns/thirdparty-watch
...
Automatic merge from submit-queue
Fix third party
Fixes https://github.com/kubernetes/kubernetes/issues/25421
Fixes https://github.com/kubernetes/kubernetes/issues/25422
@AdoHe @sjenning @caesarxuchao @lavalamp
@kubernetes/sig-api-machinery
[]()
2016-06-04 15:42:41 -07:00
k8s-merge-robot
525140a278
Merge pull request #26693 from AdoHe/init_containers
...
Automatic merge from submit-queue
exec support init containers
Partially fixes #25818
@smarterclayton ptal.
2016-06-03 10:13:49 -07:00
AdoHe
1cfcb24f37
exec support init container
2016-06-03 02:05:15 -04:00
Mike Metral
4409eed57f
fix recursive & non-recursive kubectl get of generic output format
2016-06-02 21:46:15 -07:00
Brendan Burns
328a8392b1
Fix third party
2016-06-02 10:24:14 -07:00
k8s-merge-robot
8c66ffbddc
Merge pull request #26581 from caesarxuchao/continue-25746
...
Automatic merge from submit-queue
fix kubectl patch example
Based on https://github.com/kubernetes/kubernetes/pull/25746 , fix the kubectl example.
cc @tobstarr
2016-06-02 07:48:07 -07:00
Janet Kuo
4615d1e24c
Add more information when throwing errors in discoverying 3rd party resources
2016-06-01 13:18:50 -07:00
Dr. Stefan Schimanski
026804c2be
Fix kubectl --attach decription with deprecated --interactive
2016-06-01 13:21:39 +02:00
k8s-merge-robot
0a6a52b19d
Merge pull request #26597 from caesarxuchao/fix-26425
...
Automatic merge from submit-queue
retry GetThirdPartyGroupVersions
GetThirdPartyGroupVersions() may return a "NotFound" error if a thirdparty group is deleted in the interim between the group-discovery and the resource-discovery. This is causing e2e flakes in all tests that run kubectl, because test/e2e/thirdparty.go is creating/deleting thirdparty groups.
Fix #26425
The e2e flakes will have the following pattern:
1. the test is calling kubectl
2. error message is `Error from server: the server could not find the requested resource`
3. in the apiserver log, you should see `GET /apis/company.com/v1: (518.944µs) 404 [[kubectl/v1.3.0 (linux/amd64) kubernetes/ae28564] 104.154.110.118:46043]`
For detail see [here](https://github.com/kubernetes/kubernetes/issues/26425#issuecomment-222844523 )
cc @janetkuo @brendanburns
2016-06-01 00:02:43 -07:00
Chao Xu
7cea7ccd8d
retry GetThirdPartyGroupVersions
2016-05-31 17:14:24 -07:00
Chao Xu
216649b822
fix kubectl patch example
2016-05-31 11:45:12 -07:00
k8s-merge-robot
d957e78a41
Merge pull request #25253 from soltysh/issue24533
...
Automatic merge from submit-queue
kubectl run --restart=Never creates pods
Fixes #24533 .
@bgrant0607 @janetkuo ptal
/fyi @thockin
```release-note
* kubectl run --restart=Never creates pods
```
[]()
2016-05-31 11:44:05 -07:00
k8s-merge-robot
ae1fb82cfc
Merge pull request #26073 from piosz/remove-metrics-group
...
Automatic merge from submit-queue
Removed metrics api group
```release-note
Removed metrics api group
```
The group is empty and unused. Kubelet Metrics API is defined in Kubelet code. Master Metrics API is defined in Heapster. Removing to avoid the confusion.
[]()
2016-05-31 03:50:24 -07:00
k8s-merge-robot
c805303644
Merge pull request #26162 from jszczepkowski/kubectl-fix2
...
Automatic merge from submit-queue
Fixed check in kubectl autoscale.
```release-note
Fixed check in kubectl autoscale: cpu consumption can be higher than 100%.
```
[]()
Fixed check in kubectl autoscale: cpu consumption can be higher than 100%. Fixes #25815 .
2016-05-31 03:00:05 -07:00
Piotr Szczesniak
22dc21d703
Removed metrics api group
2016-05-31 09:48:39 +02:00
k8s-merge-robot
6a234a2cc2
Merge pull request #24882 from brendandburns/3rdparty
...
Automatic merge from submit-queue
Add support for 3rd party objects to kubectl label
Fixes https://github.com/kubernetes/kubernetes/issues/24583
@kubernetes/rh-ux
2016-05-30 07:24:51 -07:00
k8s-merge-robot
e531a7784e
Merge pull request #26242 from metral/refactor-get
...
Automatic merge from submit-queue
fix recursive get for proper err display
- refactor code to use `Infos()` instead
- fixes https://github.com/kubernetes/kubernetes/issues/26241
2016-05-30 05:04:04 -07:00
Dr. Stefan Schimanski
a79a420fde
Move shell completion generation into 'kubectl completion' command
2016-05-30 07:23:36 +02:00
k8s-merge-robot
10b271c6de
Merge pull request #26078 from mfojtik/fix-nil-annnotations
...
Automatic merge from submit-queue
Fix panic when the namespace flag is not present
We don't set the namespace in OpenShift, so we need to check if the namespace flag is present.
2016-05-29 10:32:33 -07:00
Michail Kargakis
3cbb6b0104
kubectl: move printObjectSpecificMessage in factory
2016-05-28 18:33:58 +02:00
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
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
Maciej Szulik
d76fa8a119
kubectl run --restart=Never creates pods
2016-05-28 07:08:32 +02:00
Minhan Xia
a1bd33f510
promote sourceRange into service spec
2016-05-26 10:42:30 -07:00
Eric Chiang
323e804f39
add rbac for tests and kubectl
2016-05-25 14:25:56 -07:00
Mike Metral
950612eb5f
fix recursive get for proper err display
2016-05-24 20:05:07 -07:00
k8s-merge-robot
50524c78a1
Merge pull request #20672 from brendandburns/dump
...
Automatic merge from submit-queue
Add a 'kubectl clusterinfo dump' option
Ref: #3500
@bgrant0607 @smarterclayton @jszczepkowski
Usage:
```
# Dump current cluster state to stdout
kubectl clusterinfo dump
# Dump current cluster state to /tmp
kubectl clusterinfo dump --output-directory=/tmp
# Dump all namespaces to stdout
kubectl clusterinfo dump --all-namespaces
# Dump a set of namespaces to /tmp
kubectl clusterinfo dump --namespaces default,kube-system --output-directory=/tmp
```
<!-- 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/20672 )
<!-- Reviewable:end -->
2016-05-24 14:24:17 -07:00
Jerzy Szczepkowski
47a5c17aba
Fixed check in kubectl autoscale.
...
Fixed check in kubectl autoscale: cpu consumption can be higher than 100%. Fixes #25815 .
2016-05-24 14:56:25 +02:00
Brendan Burns
dac09311b8
Add support for labelling 3rd party objects
2016-05-23 13:13:35 -07:00
Michal Fojtik
f79998a9b1
Fix panic when the namespace flag is not present
2016-05-23 16:41:31 +02:00
Mike Metral
4913481b05
enable recursive processing in kubectl edit
2016-05-22 09:49:11 -07:00
k8s-merge-robot
39f0c6ba25
Merge pull request #24719 from bprashanth/kubectl_tls
...
Automatic merge from submit-queue
Add a kubectl create secret tls command
A somewhat hasty implementation that enables progress along: https://github.com/kubernetes/kubernetes/issues/20176#issuecomment-177409516 , https://github.com/kubernetes/kubernetes/issues/24669 , https://github.com/kubernetes/kubernetes/issues/20176#issuecomment-198142836 if associated parties have spare cycles. @kubernetes/kubectl
<!-- 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/24719 )
<!-- Reviewable:end -->
2016-05-22 09:40:42 -07:00