Skip to content

Commit cb12adb

Browse files
author
Andy Goldstein
committed
Match upstream exec API refactoring
1 parent df94f1e commit cb12adb

File tree

1 file changed

+5
-1
lines changed
  • pkg/build/registry/buildconfiginstantiate

1 file changed

+5
-1
lines changed

pkg/build/registry/buildconfiginstantiate/rest.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ func (h *binaryInstantiateHandler) handle(r io.Reader) (runtime.Object, error) {
219219
if err != nil {
220220
return nil, errors.NewInternalError(fmt.Errorf("unable to connect to server: %v", err))
221221
}
222-
if err := exec.Stream(kubeletremotecommand.SupportedStreamingProtocols, r, nil, nil, false); err != nil {
222+
streamOptions := remotecommand.StreamOptions{
223+
SupportedProtocols: kubeletremotecommand.SupportedStreamingProtocols,
224+
Stdin: r,
225+
}
226+
if err := exec.Stream(streamOptions); err != nil {
223227
return nil, errors.NewInternalError(err)
224228
}
225229
return latest, nil

0 commit comments

Comments
 (0)