[release-3.3] Adjust container terminal priority: bash, sh (#5076)

Adjust container terminal priority: bash, sh

Co-authored-by: tal66 <77445020+tal66@users.noreply.github.com>
This commit is contained in:
KubeSphere CI Bot
2022-07-21 11:16:29 +08:00
committed by GitHub
parent 921a8f068b
commit cd6f940f1d

View File

@@ -330,7 +330,7 @@ func isValidShell(validShells []string, shell string) bool {
func (t *terminaler) HandleSession(shell, namespace, podName, containerName string, conn *websocket.Conn) {
var err error
validShells := []string{"sh", "bash"}
validShells := []string{"bash", "sh"}
session := &TerminalSession{conn: conn, sizeChan: make(chan remotecommand.TerminalSize)}