Skip to content

Commit

Permalink
removing okhttp from the rawtest
Browse files Browse the repository at this point in the history
updating utils to use the old TlsVersion enum
  • Loading branch information
shawkins committed Oct 28, 2021
1 parent 80a2570 commit 5f8c8e2
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public static io.fabric8.kubernetes.client.http.HttpClient createHttpClient(fina

if (config.getTlsVersions() != null && config.getTlsVersions().length > 0) {
ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
.tlsVersions(Arrays.asList(config.getTlsVersions()).stream().map(tls -> tls.name()).toArray(String[]::new))
.tlsVersions(Arrays.asList(config.getTlsVersions()).stream().map(tls -> TlsVersion.valueOf(tls.name())).toArray(TlsVersion[]::new))
.build();
httpClientBuilder.connectionSpecs(Arrays.asList(spec, CLEARTEXT));
}
Expand Down
Loading

0 comments on commit 5f8c8e2

Please sign in to comment.