Added kubeconfig option to Pod and Container shell commands
parent
247cc634be
commit
eb8ac7d3df
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue