From 6ba85053dddb8459c61314d0779e798be80f1a59 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Tue, 20 Mar 2018 17:56:13 -0500 Subject: [PATCH] until there is an auth plan tls testing should support insecure Signed-off-by: Mike Brown --- cmd/crictl/attach.go | 2 +- cmd/crictl/exec.go | 2 +- pkg/validate/streaming.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/crictl/attach.go b/cmd/crictl/attach.go index d7e99e26c2..3a07c0e37e 100644 --- a/cmd/crictl/attach.go +++ b/cmd/crictl/attach.go @@ -99,7 +99,7 @@ func Attach(client pb.RuntimeServiceClient, opts attachOptions) error { return err } logrus.Debugf("Attach URL: %v", URL) - attach, err := remoteclient.NewSPDYExecutor(&restclient.Config{}, "POST", URL) + attach, err := remoteclient.NewSPDYExecutor(&restclient.Config{TLSClientConfig: restclient.TLSClientConfig{Insecure: true}}, "POST", URL) if err != nil { return err } diff --git a/cmd/crictl/exec.go b/cmd/crictl/exec.go index 52705313e8..85c4b5bd80 100644 --- a/cmd/crictl/exec.go +++ b/cmd/crictl/exec.go @@ -141,7 +141,7 @@ func Exec(client pb.RuntimeServiceClient, opts execOptions) error { } logrus.Debugf("Exec URL: %v", URL) - exec, err := remoteclient.NewSPDYExecutor(&restclient.Config{}, "POST", URL) + exec, err := remoteclient.NewSPDYExecutor(&restclient.Config{TLSClientConfig: restclient.TLSClientConfig{Insecure: true}}, "POST", URL) if err != nil { return err } diff --git a/pkg/validate/streaming.go b/pkg/validate/streaming.go index 3291ee9094..b9fe08e030 100644 --- a/pkg/validate/streaming.go +++ b/pkg/validate/streaming.go @@ -141,7 +141,7 @@ func checkExec(c internalapi.RuntimeService, execServerURL string) { // Only http is supported now. // TODO: support streaming APIs via tls. url := parseURL(c, execServerURL) - e, err := remoteclient.NewSPDYExecutor(&rest.Config{}, "POST", url) + e, err := remoteclient.NewSPDYExecutor(&rest.Config{TLSClientConfig: rest.TLSClientConfig{Insecure: true}}, "POST", url) framework.ExpectNoError(err, "failed to create executor for %q", execServerURL) err = e.Stream(remoteclient.StreamOptions{ @@ -232,7 +232,7 @@ func checkAttach(c internalapi.RuntimeService, attachServerURL string) { // Only http is supported now. // TODO: support streaming APIs via tls. url := parseURL(c, attachServerURL) - e, err := remoteclient.NewSPDYExecutor(&rest.Config{}, "POST", url) + e, err := remoteclient.NewSPDYExecutor(&rest.Config{TLSClientConfig: rest.TLSClientConfig{Insecure: true}}, "POST", url) framework.ExpectNoError(err, "failed to create executor for %q", attachServerURL) err = e.Stream(remoteclient.StreamOptions{ @@ -264,7 +264,7 @@ func checkPortForward(c internalapi.RuntimeService, portForwardSeverURL string) readyChan := make(chan struct{}) defer close(stopChan) - transport, upgrader, err := spdy.RoundTripperFor(&rest.Config{}) + transport, upgrader, err := spdy.RoundTripperFor(&rest.Config{TLSClientConfig: rest.TLSClientConfig{Insecure: true}}) framework.ExpectNoError(err, "failed to create spdy round tripper") url := parseURL(c, portForwardSeverURL) dialer := spdy.NewDialer(upgrader, &http.Client{Transport: transport}, "POST", url)