Commit 32e927f4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #44506 from caesarxuchao/fix-cross-build

Automatic merge from submit-queue fix cross-build Fix https://github.com/kubernetes/kubernetes/pull/41543#issuecomment-294207870
parents 55042b0b 59396e6b
...@@ -20,12 +20,13 @@ import ( ...@@ -20,12 +20,13 @@ import (
"time" "time"
"k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/kubernetes/pkg/client/unversioned/remotecommand"
) )
// monitorResizeEvents spawns a goroutine that periodically gets the terminal size and tries to send // monitorResizeEvents spawns a goroutine that periodically gets the terminal size and tries to send
// it to the resizeEvents channel if the size has changed. The goroutine stops when the stop channel // it to the resizeEvents channel if the size has changed. The goroutine stops when the stop channel
// is closed. // is closed.
func monitorResizeEvents(fd uintptr, resizeEvents chan<- Size, stop chan struct{}) { func monitorResizeEvents(fd uintptr, resizeEvents chan<- remotecommand.TerminalSize, stop chan struct{}) {
go func() { go func() {
defer runtime.HandleCrash() defer runtime.HandleCrash()
......
...@@ -18,7 +18,11 @@ limitations under the License. ...@@ -18,7 +18,11 @@ limitations under the License.
package term package term
func SetSize(fd uintptr, size Size) error { import (
"k8s.io/kubernetes/pkg/client/unversioned/remotecommand"
)
func SetSize(fd uintptr, size remotecommand.TerminalSize) error {
// NOP // NOP
return nil return nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment