Commit ca26a8b3 authored by Kazuki Suda's avatar Kazuki Suda

Add initContainers into completion suggestions for kubectl logs/attach

parent a0b1d4de
...@@ -148,7 +148,7 @@ __kubectl_get_resource_clusterrole() ...@@ -148,7 +148,7 @@ __kubectl_get_resource_clusterrole()
__kubectl_get_containers() __kubectl_get_containers()
{ {
local template local template
template="{{ range .spec.containers }}{{ .name }} {{ end }}" template="{{ range .spec.initContainers }}{{ .name }} {{end}}{{ range .spec.containers }}{{ .name }} {{ end }}"
__kubectl_debug "${FUNCNAME} nouns are ${nouns[*]}" __kubectl_debug "${FUNCNAME} nouns are ${nouns[*]}"
local len="${#nouns[@]}" local len="${#nouns[@]}"
......
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