Commit 57ec3a72 authored by Daniel Smith's avatar Daniel Smith

Merge pull request #2465 from eparis/bash-comp-fix

fix kubectl log completion
parents 3c3ad747 45a71bb8
...@@ -53,7 +53,7 @@ __kubectl_parse_get() ...@@ -53,7 +53,7 @@ __kubectl_parse_get()
__kubectl_get_containers() __kubectl_get_containers()
{ {
local template local template
template="{{ range .DesiredState.Manifest.Containers }}{{ .Name }} {{ end }}" template="{{ range .desiredState.manifest.containers }}{{ .name }} {{ end }}"
local kubectl_out local kubectl_out
if kubectl_out=$(kubectl get -o template --template="${template}" pods "$1" 2>/dev/null); then 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