k3s/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
..
auth This change add nonResourceURL to kubectl auth cani 2017-05-31 11:25:29 +08:00
config Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
rollout fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
set fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
templates Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
testdata/edit support setElementOrder 2017-05-31 15:08:25 -07:00
testing fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
util Merge pull request #45918 from juanvallejo/jvallejo/fix-kubectl-set-resources-local 2017-06-16 08:19:13 -07:00
BUILD Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
annotate.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
annotate_test.go
apiversions.go cmd: fix deprecation warning bug 2017-05-18 16:48:13 -07:00
apply.go Merge pull request #45918 from juanvallejo/jvallejo/fix-kubectl-set-resources-local 2017-06-16 08:19:13 -07:00
apply_edit_last_applied.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
apply_set_last_applied.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
apply_test.go Merge pull request #46388 from lavalamp/whitlockjc-generic-webhook-admission 2017-06-02 23:37:42 -07:00
apply_view_last_applied.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
attach.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
attach_test.go clean up: put test description in head to locate quickly 2017-05-19 02:04:59 +08:00
autoscale.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
certificates.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
clusterinfo.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
clusterinfo_dump.go
clusterinfo_dump_test.go
cmd.go Fix missing __kubectl_parse_config 2017-06-11 07:12:23 +09:00
cmd_test.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
completion.go
convert.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
cp.go
cp_test.go
create.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
create_clusterrole.go support NonResourceURL for kubectl create clusterrole 2017-05-26 10:07:44 +08:00
create_clusterrole_test.go Merge pull request #46265 from waseem/printers-genericity 2017-06-02 19:53:40 -07:00
create_clusterrolebinding.go
create_configmap.go
create_configmap_test.go
create_deployment.go
create_deployment_test.go Implement dynamic admission webhooks 2017-05-31 16:38:46 -07:00
create_namespace.go
create_namespace_test.go
create_pdb.go PDB MaxUnavailable: kubectl changes 2017-05-23 07:18:44 -07:00
create_quota.go
create_quota_test.go Fix test not use test flags 2017-05-24 10:14:00 +08:00
create_role.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
create_role_test.go Merge pull request #46706 from CaoShuFeng/unit-create-role 2017-06-03 18:30:40 -07:00
create_rolebinding.go
create_rolebinding_test.go
create_secret.go
create_secret_test.go
create_service.go
create_service_test.go add test to cover more in kubectl create service 2017-05-16 18:45:38 +08:00
create_serviceaccount.go
create_serviceaccount_test.go
create_test.go
delete.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
delete_test.go
describe.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
describe_test.go
drain.go Merge pull request #45918 from juanvallejo/jvallejo/fix-kubectl-set-resources-local 2017-06-16 08:19:13 -07:00
drain_test.go
edit.go
edit_test.go add `kubectl apply edit-last-applied` subcommand 2017-05-26 00:20:48 +08:00
exec.go Merge pull request #43663 from shiywang/quato 2017-05-22 19:07:12 -07:00
exec_test.go clean up: put test description in head to locate quickly 2017-05-19 02:04:59 +08:00
explain.go remove --api-version 2017-05-19 10:56:35 +08:00
expose.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
expose_test.go
get.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
get_test.go Get cmd uses print-column extn from Openapi schema 2017-06-06 13:30:24 -07:00
help.go
label.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
label_test.go
logs.go Merge pull request #44282 from derekwaynecarr/fix-kubectl-logs 2017-06-16 18:05:48 -07:00
logs_test.go
options.go cmd/options: `kubectl options` writes to `out` stream 2017-05-28 11:23:44 -07:00
patch.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
patch_test.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
plugin.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
plugin_test.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
portforward.go Move client/unversioned/remotecommand to client-go 2017-05-15 16:28:56 +03:00
portforward_test.go
proxy.go kubectl: fixes issues #45736 and #45737 2017-05-22 18:57:11 -04:00
replace.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
replace_test.go
rollingupdate.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
rollingupdate_test.go
run.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
run_test.go Implement dynamic admission webhooks 2017-05-31 16:38:46 -07:00
scale.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
stop.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
taint.go fix --local flag for `kubectl set` commands 2017-06-13 12:57:05 -04:00
taint_test.go
top.go
top_node.go
top_node_test.go hack/update-bazal.sh 2017-05-15 13:51:39 -07:00
top_pod.go
top_pod_test.go rely on staging/metrics instead of on 2017-05-15 13:50:49 -07:00
top_test.go rely on staging/metrics instead of on 2017-05-15 13:50:49 -07:00
version.go