From 45a71bb8f33f5a77880801e84482632b265a2f21 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 19 Nov 2014 14:17:51 -0500 Subject: [PATCH] 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. --- contrib/completions/bash/kubectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completions/bash/kubectl b/contrib/completions/bash/kubectl index 7e37874ce39..1eeee0bc00d 100644 --- a/contrib/completions/bash/kubectl +++ b/contrib/completions/bash/kubectl @@ -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