Use streaming constants from pkg/api/v1 instead of pkg/api

Kubernetes-commit: a713604b24bfb4530b690e061e863e71e0bc1087
This commit is contained in:
Dmitry Shulyak
2017-05-10 10:39:20 +03:00
committed by Kubernetes Publisher
parent 28760732a9
commit 9e7cf8d7ca
6 changed files with 29 additions and 30 deletions

View File

@@ -23,7 +23,7 @@ import (
"sync"
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/client-go/pkg/api"
"k8s.io/client-go/pkg/api/v1"
)
// streamProtocolV3 implements version 3 of the streaming protocol for attach
@@ -51,7 +51,7 @@ func (p *streamProtocolV3) createStreams(conn streamCreator) error {
// set up resize stream
if p.Tty {
headers := http.Header{}
headers.Set(api.StreamType, api.StreamTypeResize)
headers.Set(v1.StreamType, v1.StreamTypeResize)
var err error
p.resizeStream, err = conn.CreateStream(headers)
if err != nil {