Fix panic due to nil pointer exception

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2021-06-25 14:52:51 +08:00
committed by ks-ci-bot
parent d8e776cd8d
commit 8b604867c6

View File

@@ -47,6 +47,7 @@ type terminalHandler struct {
func newTerminalHandler(client kubernetes.Interface, authorizer authorizer.Authorizer, config *rest.Config) *terminalHandler {
return &terminalHandler{
authorizer: authorizer,
terminaler: terminal.NewTerminaler(client, config),
}
}