From c6c6b233934b3a1b5cb90e9b722814ff485a680c Mon Sep 17 00:00:00 2001 From: Alban Bedel Date: Tue, 17 Nov 2020 20:23:02 +0100 Subject: Client call to /play/kube incorrectly set tlsVerify The API parameter `tlsVerify` should be the invert of the internal option `SkipTLSVerify`, fix this conversion. Signed-off-by: Alban Bedel --- pkg/bindings/play/play.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/bindings/play/play.go b/pkg/bindings/play/play.go index 8af3b8fb1..b6e8048de 100644 --- a/pkg/bindings/play/play.go +++ b/pkg/bindings/play/play.go @@ -30,7 +30,7 @@ func Kube(ctx context.Context, path string, options entities.PlayKubeOptions) (* params.Set("network", options.Network) params.Set("logDriver", options.LogDriver) if options.SkipTLSVerify != types.OptionalBoolUndefined { - params.Set("tlsVerify", strconv.FormatBool(options.SkipTLSVerify == types.OptionalBoolTrue)) + params.Set("tlsVerify", strconv.FormatBool(options.SkipTLSVerify != types.OptionalBoolTrue)) } // TODO: have a global system context we can pass around (1st argument) -- cgit v1.2.3-54-g00ecf