let type struct,array,slice also being considerred when sorting kubectl output

This commit is contained in:
zhouhaibing089
2016-05-01 14:18:03 +08:00
committed by haibzhou
parent b930d58fcb
commit 09d4d5ed78
3 changed files with 91 additions and 0 deletions

View File

@@ -1781,6 +1781,7 @@ __EOF__
kube::test::get_object_assert pods "{{range.items}}{{$id_field}}:{{end}}" ''
# Command
kubectl get pods --sort-by="{metadata.name}"
kubectl get pods --sort-by="{metadata.creationTimestamp}"
############################
# Kubectl --all-namespaces #