mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #2465 from eparis/bash-comp-fix
fix kubectl log completion
This commit is contained in:
commit
57ec3a720b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user