Skip to content

Commit 2b0cedf

Browse files
Include SDPY fallback handling for HTTPSProxy Errors
pick up the same additional error handling that was introduced by this commit to the kubectl client. kubernetes/kubectl@2c588bc Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 4add125 commit 2b0cedf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/driver/kubernetes/client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ func (c *Client) Exec(ctx context.Context, options *ExecStreamOptions) error {
125125
if err != nil {
126126
return err
127127
}
128-
exec, err := remotecommand.NewFallbackExecutor(websocketExec, spdyExec, httpstream.IsUpgradeFailure)
128+
exec, err := remotecommand.NewFallbackExecutor(websocketExec, spdyExec, func(err error) bool {
129+
return httpstream.IsUpgradeFailure(err) || httpstream.IsHTTPSProxyError(err)
130+
})
129131
if err != nil {
130132
return err
131133
}

0 commit comments

Comments
 (0)