derekwaynecarr
65764c8ed2
kubectl describe node is allocatable aware
2016-06-14 13:06:47 -04:00
Łukasz Oleś
11e1188dbe
Show restart count for init containers
...
Coutner is reset for normal containers.
fixes issue: #26892
2016-06-14 14:35:37 +02: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
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
Clayton Coleman
b2f72e6b1b
resource.Builder should not alter error type from server
...
The current helpful message loses the error type, which means
resource.Builder consumers can't filter errors or have downstream logic.
If the error is a known type, only mutate the message, not the message
type.
2016-06-11 19:22:54 -04: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
Michail Kargakis
c7140b3749
kubectl: return more meaningful timeout errors
2016-06-08 18:03:49 +02:00
Michail Kargakis
a74f700b63
kubectl: ignore only update conflicts in the scaler
2016-06-08 18:03:49 +02: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
Michail Kargakis
476208dec6
kubectl: make --container-port actually work for expose
...
Even if it was recently deprecated, it should work as expected.
2016-05-31 10:55:49 +02: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