aylei / kubectl-debug

This repository is no longer maintained, please checkout https://github.com/JamesTGrant/kubectl-debug.
Apache License 2.0
2.31k stars 303 forks source link

--fork fails if original pod name length is > 19 #126

Closed frits-v closed 4 years ago

frits-v commented 4 years ago

Because of pod name length limitations (max 63) --fork cannot be used since it adds a 44 character string (- + GUID + -debug)

https://github.com/aylei/kubectl-debug/blob/914f3d3e06eb6e6b087388ba810436ef6f1c2785/pkg/plugin/cmd.go#L863 This should be truncated to 63 characters max