fix kubectl log completion

When kubectl started returning the right object it changed the template
that needed to be used to get the name of the containers inside the pod.
This commit is contained in:
Eric Paris
2014-11-19 14:17:51 -05:00
parent 298007b97e
commit 45a71bb8f3

View File

@@ -53,7 +53,7 @@ __kubectl_parse_get()
__kubectl_get_containers()
{
local template
template="{{ range .DesiredState.Manifest.Containers }}{{ .Name }} {{ end }}"
template="{{ range .desiredState.manifest.containers }}{{ .name }} {{ end }}"
local kubectl_out
if kubectl_out=$(kubectl get -o template --template="${template}" pods "$1" 2>/dev/null); then