mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +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()
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user