mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Prevent panic in 'kubectl exec' when redirecting stdout
Just add some nil checks to make sure we don't trip over when we redirect output from exec to a file. Fixes #30290
This commit is contained in:
parent
489b204b07
commit
b15219034d
@ -63,7 +63,7 @@ func (p *streamProtocolV3) createStreams(conn streamCreator) error {
|
||||
}
|
||||
|
||||
func (p *streamProtocolV3) handleResizes() {
|
||||
if p.resizeStream == nil {
|
||||
if p.resizeStream == nil || p.TerminalSizeQueue == nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user