Skip to content

Commit 207e773

Browse files
authored
Merge pull request #274 from mikebrow/insecure-tls-support
until there is an auth plan tls testing should support insecure
2 parents 976680c + 6ba8505 commit 207e773

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/crictl/attach.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func Attach(client pb.RuntimeServiceClient, opts attachOptions) error {
9999
return err
100100
}
101101
logrus.Debugf("Attach URL: %v", URL)
102-
attach, err := remoteclient.NewSPDYExecutor(&restclient.Config{}, "POST", URL)
102+
attach, err := remoteclient.NewSPDYExecutor(&restclient.Config{TLSClientConfig: restclient.TLSClientConfig{Insecure: true}}, "POST", URL)
103103
if err != nil {
104104
return err
105105
}

cmd/crictl/exec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func Exec(client pb.RuntimeServiceClient, opts execOptions) error {
141141
}
142142

143143
logrus.Debugf("Exec URL: %v", URL)
144-
exec, err := remoteclient.NewSPDYExecutor(&restclient.Config{}, "POST", URL)
144+
exec, err := remoteclient.NewSPDYExecutor(&restclient.Config{TLSClientConfig: restclient.TLSClientConfig{Insecure: true}}, "POST", URL)
145145
if err != nil {
146146
return err
147147
}

pkg/validate/streaming.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func checkExec(c internalapi.RuntimeService, execServerURL string) {
141141
// Only http is supported now.
142142
// TODO: support streaming APIs via tls.
143143
url := parseURL(c, execServerURL)
144-
e, err := remoteclient.NewSPDYExecutor(&rest.Config{}, "POST", url)
144+
e, err := remoteclient.NewSPDYExecutor(&rest.Config{TLSClientConfig: rest.TLSClientConfig{Insecure: true}}, "POST", url)
145145
framework.ExpectNoError(err, "failed to create executor for %q", execServerURL)
146146

147147
err = e.Stream(remoteclient.StreamOptions{
@@ -232,7 +232,7 @@ func checkAttach(c internalapi.RuntimeService, attachServerURL string) {
232232
// Only http is supported now.
233233
// TODO: support streaming APIs via tls.
234234
url := parseURL(c, attachServerURL)
235-
e, err := remoteclient.NewSPDYExecutor(&rest.Config{}, "POST", url)
235+
e, err := remoteclient.NewSPDYExecutor(&rest.Config{TLSClientConfig: rest.TLSClientConfig{Insecure: true}}, "POST", url)
236236
framework.ExpectNoError(err, "failed to create executor for %q", attachServerURL)
237237

238238
err = e.Stream(remoteclient.StreamOptions{
@@ -264,7 +264,7 @@ func checkPortForward(c internalapi.RuntimeService, portForwardSeverURL string)
264264
readyChan := make(chan struct{})
265265
defer close(stopChan)
266266

267-
transport, upgrader, err := spdy.RoundTripperFor(&rest.Config{})
267+
transport, upgrader, err := spdy.RoundTripperFor(&rest.Config{TLSClientConfig: rest.TLSClientConfig{Insecure: true}})
268268
framework.ExpectNoError(err, "failed to create spdy round tripper")
269269
url := parseURL(c, portForwardSeverURL)
270270
dialer := spdy.NewDialer(upgrader, &http.Client{Transport: transport}, "POST", url)

0 commit comments

Comments
 (0)