update shell config
parent
4bd37a492f
commit
175a16cfce
|
|
@ -12,7 +12,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/derailed/k9s/internal/client"
|
"github.com/derailed/k9s/internal/client"
|
||||||
"github.com/derailed/k9s/internal/config"
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
kerrors "k8s.io/apimachinery/pkg/api/errors"
|
kerrors "k8s.io/apimachinery/pkg/api/errors"
|
||||||
|
|
@ -163,11 +162,7 @@ func nukeK9sShell(a *App) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func launchShellPod(a *App, node string) error {
|
func launchShellPod(a *App, node string) error {
|
||||||
img := a.Config.K9s.DockerShellImage
|
spec := k9sShellPod(node, a.Config.K9s.ActiveCluster().ShellPod)
|
||||||
if img == "" {
|
|
||||||
img = config.DefaultDockerShellImage
|
|
||||||
}
|
|
||||||
spec := k9sShellPod(node, img)
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
|
ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
dial := a.Conn().DialOrDie().CoreV1().Pods(k9sShellNS)
|
dial := a.Conn().DialOrDie().CoreV1().Pods(k9sShellNS)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue