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
98f0d22bcc
Merge pull request #26975 from ericchiang/kubectl-resource-printer-for-rbac-group
...
Automatic merge from submit-queue
pkg/kubectl: add resource printers for rbac api group
This PR adds the necessary kubectl printers for the rbac api group which we overlooked in previous PRs.
cc @erictune
2016-06-12 17:13:55 -07: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
f1ccc2f1be
Merge pull request #26354 from csrwng/fix_visitor_error
...
Automatic merge from submit-queue
kubectl: fix URLVisitor error message
The status of a failed fetch will usually include the code, resulting in a duplicate code in the error message:
```
unable to read URL "http://git:8080/ruby-hello-world.git ", server reported 401 401 Unauthorized
```
This change rearranges them so at least the message doesn't stutter (and includes the code in case it's not part of the status):
```
unable to read URL "http://git:8080/ruby-hello-world.git ", server reported 401 Unauthorized, status code 401
```
[]()
2016-06-09 02:43:27 -07:00
k8s-merge-robot
0b6e0e2b02
Merge pull request #26749 from Clarifai/describe-svc
...
Automatic merge from submit-queue
AWS: kubectl get service should print hostnames for LB services
Fixes #21526
Also test wide outputs. We only guarantee the first IP to be fully printed
if multiple ingresses are present. For AWS, which has no ingress IPs, but
only hostnames, the ELB hostname will be truncated, unless -o=wide is
specified.
2016-06-09 02:43:23 -07: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
Rudi Chiarito
40f76a95cb
AWS: kubectl get service should print hostnames for LoadBalancer services
...
Fixes #21526
Also test wide outputs. We only guarantee the first IP to be fully printed
if multiple ingresses are present. For AWS, which has no ingress IPs, but
only hostnames, the ELB hostname will be truncated, unless -o=wide is
specified.
2016-06-08 19:29:48 -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
Eric Chiang
acfac5aff8
pkg/kubectl: add resource printers for rbac api group
2016-06-07 15:26:57 -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
5c41b93d8b
Merge pull request #26719 from pwittrock/kubectl-owners
...
Automatic merge from submit-queue
Add pwittrock to the kubectl OWNERS file
[]()
2016-06-06 13:46:13 -07:00
AdoHe
9d28bab847
make kubectl get ingress output more consistency
2016-06-04 22:43:51 -04: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
9bf1ce42f8
Merge pull request #26843 from AdoHe/describe_ingress
...
Automatic merge from submit-queue
update ingress describe output
refer #26684 for more detail. @bprashanth ptal.
2016-06-04 13:27:46 -07:00
k8s-merge-robot
95e2535682
Merge pull request #26793 from fabianofranz/expose_show_labels_in_printers
...
Automatic merge from submit-queue
Expose printer utils that append labels
So that it can be reused downstream. @smarterclayton
[]()
2016-06-04 09:59:39 -07:00
k8s-merge-robot
22d405477b
Merge pull request #26568 from derekwaynecarr/kubectl_qos
...
Automatic merge from submit-queue
Update kubectl describe pod to use pod level qos
Fixes https://github.com/kubernetes/kubernetes/issues/26374
/cc @vishh
2016-06-04 02:40:47 -07:00
AdoHe
ab743708fe
update ingress describe output
2016-06-04 04:58:37 -04:00
derekwaynecarr
89ff3b2530
Update kubectl describe pod to use pod level qos
2016-06-03 15:32:32 -04:00
Fabiano Franz
8f62a196fd
Expose print utils to append labels
2016-06-03 15:00:50 -03: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
Phillip Wittrock
198c95d3d7
Add pwittrock to the kubectl OWNERS file
2016-06-02 09:21:25 -07:00
k8s-merge-robot
cae939b81c
Merge pull request #26654 from janetkuo/e2e-deployment-list-rs
...
Automatic merge from submit-queue
List RSes once when getting old/new RSes in deployment e2e tests
Ref #26509
[]()
2016-06-02 08:54:36 -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
2ced966cd5
List RSes once when getting old/new RSes in deployment e2e tests
2016-06-01 14:19:35 -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
63931d39a3
Merge pull request #26349 from kargakis/fix-reaper-not-found-error
...
Automatic merge from submit-queue
kubectl: cast scale errors to actual errors when deleting
Fixes some of the deployment reaper timeouts in e2e
@kubernetes/deployment @soltysh
2016-05-29 17:29:30 -07:00
k8s-merge-robot
72479b82e0
Merge pull request #26019 from gyuho/kubectl_slice_append
...
Automatic merge from submit-queue
pkg/kubectl: preallocate slice
2016-05-29 15:00:15 -07: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
Gyu-Ho Lee
a14a288c3f
pkg/kubectl: preallocate slice
...
To avoid slice growth with append operations.
2016-05-29 02:09:39 -07:00
k8s-merge-robot
7813e90026
Merge pull request #25802 from dshulyak/sort_history
...
Automatic merge from submit-queue
Sort revisions in rollout history as integers
Previously keys were sorted as strings, thus it was possible to see such order as 1, 10, 2, 3, 4, 5.
fixes : #25788
2016-05-28 22:56:31 -07:00
k8s-merge-robot
9e31175795
Merge pull request #26161 from kargakis/move-print-method-in-the-factory
...
Automatic merge from submit-queue
kubectl: move printObjectSpecificMessage in factory
@smarterclayton @kubernetes/kubectl PTAL
2016-05-28 15:15:59 -07:00