kubectl/pkg/cmd/debug
Kiyoshi Muranaka 5457c2b27c Fix index out of range panic for kubectl alpha debug
Fix containerNameToRef func to get init containers and ephemeral containers properly.

Set EphemeralContainers in generatePodCopyWithDebugContainer func to nil which means
dropping ephemeral containers from a copy of pod so that it can be created successfully,
otherwise it is rejected by the API server.

Kubernetes-commit: bf3dfaf99942eab20fac1570ca0146d32cb93b57
2020-09-07 02:43:21 +09:00
..
debug.go Fix index out of range panic for kubectl alpha debug 2020-09-07 02:43:21 +09:00
debug_test.go Fix index out of range panic for kubectl alpha debug 2020-09-07 02:43:21 +09:00