Commit Graph

2 Commits

Author SHA1 Message Date
WanLinghao
97ec74df03 The client-go library supports user get Object info in the form of .spec.containers[0:3].name.
But kubectl get command doesn't support this.
This patch fix this, now users could get object info like:
a. kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[0:3].name
b. kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[-2:].name
2019-01-31 09:38:04 +08:00
Sean Sullivan
e0b712d428 kubectl: move custom columns printers and flags 2018-11-12 14:31:59 -08:00