mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 12:41:58 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user