Merge pull request #196 from tammert/kubeconfig-shell-fix

Added kubeconfig option to Pod and Container shell commands
mine
Fernand Galiana 2019-05-28 12:18:33 -06:00 committed by GitHub
commit f14ac458f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ func (v *containerView) shellIn(path, co string) {
args = append(args, "exec", "-it")
args = append(args, "--context", v.app.config.K9s.CurrentContext)
args = append(args, "-n", ns)
args = append(args, "--kubeconfig", *v.app.config.GetConnection().Config().Flags().KubeConfig)
args = append(args, po)
if len(co) != 0 {
args = append(args, "-c", co)

View File

@ -181,6 +181,7 @@ func (v *podView) shellIn(path, co string) {
args = append(args, "exec", "-it")
args = append(args, "--context", v.app.config.K9s.CurrentContext)
args = append(args, "-n", ns)
args = append(args, "--kubeconfig", *v.app.config.GetConnection().Config().Flags().KubeConfig)
args = append(args, po)
if len(co) != 0 {
args = append(args, "-c", co)