Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 48d263d3bf Merge pull request #44282 from derekwaynecarr/fix-kubectl-logs
Automatic merge from submit-queue (batch tested with PRs 38751, 44282, 46382, 47603, 47606)

kubectl logs with label selector supports specifying a container name

**What this PR does / why we need it**:
Allows `kubectl logs` to take both a label selector and container name.  This allows me to fetch logs from pods by selector whose pods have multiple containers with a common name.  This is a common action when debugging components like the service-catalog that ship more than one container in their pod.  With this change, the following command lets me get logs for service-catalog.

```
$ kubectl logs -l app=sc-catalog-apiserver --namespace=service-catalog --container=apiserver
```
2017-06-16 18:05:48 -07:00
..
2017-05-31 15:08:25 -07:00
2017-06-11 07:12:23 +09:00
2016-10-29 20:24:54 -07:00
2017-05-19 10:56:35 +08:00
2017-05-31 13:02:23 +05:30
2017-05-11 20:09:31 +08:00
2017-05-15 13:51:39 -07:00