Print pod on shell access

mine
Joscha Alisch 2020-02-07 20:24:28 +01:00
parent 7d56789a20
commit 7d0febf4b0
No known key found for this signature in database
GPG Key ID: FCADD70C266FEEB5
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ func shellIn(a *App, path, co string) {
args := computeShellArgs(path, co, a.Config.K9s.CurrentContext, a.Conn().Config().Flags().KubeConfig)
log.Debug().Msgf("Shell args %v", args)
if !runK(true, a, "", args...) {
if !runK(true, a, fmt.Sprintf("Pod: %s\n\n", path, co), args...) {
a.Flash().Err(errors.New("Shell exec failed"))
}
}