Merge pull request #8380 from AlbanBedel/fix-client-play-kube-tls-verify

Client call to /play/kube incorrectly set tlsVerify
This commit is contained in:
OpenShift Merge Robot 2020-11-17 22:38:28 +01:00 committed by GitHub
commit 0886fabbc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)