mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue add linebreak between resource groups **Release note**: ```release-note release-note-none ``` Printing multiple groups via `kubectl get all` can produce output that is hard to read in cases where there are a lot of resource types to display / some resource types contain varying column amounts. This patch adds a linebreak above each group of resources only when there is more than one group to display, and always omitting the linebreak above the first group. This makes for slightly improved output. Linebreaks are printed to stderr, and honor the `--no-headers` option. **Before** ``` $ kubectl get all NAME READY STATUS RESTARTS AGE po/database-1-u9m9l 1/1 Running 3 5d po/idling-echo-1-9fmz6 2/2 Running 8 5d po/idling-echo-1-gzb0v 2/2 Running 4 5d NAME DESIRED CURRENT READY AGE rc/database-1 1 1 1 6d rc/idling-echo-1 2 2 2 6d NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE svc/database 172.30.11.104 <none> 5434/TCP 6d svc/frontend 172.30.196.217 <none> 5432/TCP 6d svc/idling-echo 172.30.115.67 <none> 8675/TCP,3090/UDP 6d svc/kubernetes 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP 6d svc/mynodeport 172.30.81.254 <nodes> 8080/TCP 5d svc/mynodeport1 172.30.198.193 <nodes> 8080/TCP 5d svc/mynodeport2 172.30.149.48 <nodes> 8080/TCP 5d svc/mynodeport3 172.30.195.235 <nodes> 8080/TCP 5d ``` **After** ``` $ kubectl get all NAME READY STATUS RESTARTS AGE po/database-1-u9m9l 1/1 Running 3 5d po/idling-echo-1-9fmz6 2/2 Running 8 5d po/idling-echo-1-gzb0v 2/2 Running 4 5d NAME DESIRED CURRENT READY AGE rc/database-1 1 1 1 6d rc/idling-echo-1 2 2 2 6d NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE svc/database 172.30.11.104 <none> 5434/TCP 6d svc/frontend 172.30.196.217 <none> 5432/TCP 6d svc/idling-echo 172.30.115.67 <none> 8675/TCP,3090/UDP 6d svc/kubernetes 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP 6d svc/mynodeport 172.30.81.254 <nodes> 8080/TCP 5d svc/mynodeport1 172.30.198.193 <nodes> 8080/TCP 5d svc/mynodeport2 172.30.149.48 <nodes> 8080/TCP 5d svc/mynodeport3 172.30.195.235 <nodes> 8080/TCP 5d ``` cc @fabianofranz @liggitt |
||
---|---|---|
.. | ||
config | ||
rollout | ||
set | ||
templates | ||
util | ||
annotate.go | ||
annotate_test.go | ||
apiversions.go | ||
apply.go | ||
apply_test.go | ||
attach.go | ||
attach_test.go | ||
autoscale.go | ||
clusterinfo.go | ||
clusterinfo_dump.go | ||
clusterinfo_dump_test.go | ||
cmd.go | ||
cmd_test.go | ||
completion.go | ||
convert.go | ||
create.go | ||
create_configmap.go | ||
create_configmap_test.go | ||
create_deployment.go | ||
create_deployment_test.go | ||
create_namespace.go | ||
create_namespace_test.go | ||
create_quota.go | ||
create_quota_test.go | ||
create_secret.go | ||
create_secret_test.go | ||
create_service.go | ||
create_service_test.go | ||
create_serviceaccount.go | ||
create_serviceaccount_test.go | ||
create_test.go | ||
delete.go | ||
delete_test.go | ||
describe.go | ||
describe_test.go | ||
drain.go | ||
drain_test.go | ||
edit.go | ||
exec.go | ||
exec_test.go | ||
explain.go | ||
expose.go | ||
expose_test.go | ||
get.go | ||
get_test.go | ||
help.go | ||
label.go | ||
label_test.go | ||
logs.go | ||
logs_test.go | ||
options.go | ||
patch.go | ||
patch_test.go | ||
portforward.go | ||
portforward_test.go | ||
proxy.go | ||
replace.go | ||
replace_test.go | ||
rollingupdate.go | ||
rollingupdate_test.go | ||
run.go | ||
run_test.go | ||
scale.go | ||
stop.go | ||
taint.go | ||
taint_test.go | ||
top.go | ||
top_node.go | ||
top_node_test.go | ||
top_pod.go | ||
top_pod_test.go | ||
top_test.go | ||
version.go |