Commit 45a71bb8 authored by Eric Paris's avatar Eric Paris

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.
parent 298007b9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment