Files
kubernetes/pkg/kubectl
Kubernetes Submit Queue 2273f36818 Merge pull request #51727 from juanvallejo/jvallejo/ensure-unstructured-objects-kubectl-get
Automatic merge from submit-queue (batch tested with PRs 51031, 51705, 51888, 51727, 51684). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

ensure unstructured resources in kubectl get

Related downstream issue: https://github.com/openshift/origin/issues/16064

Ensure we are dealing with unstructured objects before attempting to
compose into an unstructured list.

`$ kubectl get ...` [assumes all resources returned from a resource builder are unstructured objects](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/get.go#L355). This leads to a panic when dealing with non-unstructured objects.
This patch ensures we are dealing with unstructured objects before attempting to
compose into an unstructured list.

**Release note**:
```release-note
NONE
```

cc @fabianofranz @kubernetes/sig-cli-misc
2017-09-23 01:47:07 -07:00
..
2017-08-31 23:31:12 -07:00
2017-09-07 19:41:24 +02:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-08-31 19:11:01 -04:00
2017-01-20 08:04:53 -05:00
2017-06-03 14:35:49 +08:00
2017-01-11 09:09:48 -05:00
2017-01-25 17:32:22 -08:00
2017-07-23 02:12:53 +08:00
2017-01-11 09:09:48 -05:00
2017-08-09 10:37:03 +08:00
2017-01-11 09:09:48 -05:00
2017-06-22 11:31:03 -07:00