mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #30291 from dims/fix-issue-30290
Automatic merge from submit-queue 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 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30291) <!-- Reviewable:end -->
This commit is contained in:
commit
24ee4e8eb1
@ -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