Skip to content

Commit

Permalink
Disable Vert.x file caching when building the k8s client HttpClient.F…
Browse files Browse the repository at this point in the history
…actory

Relates to: quarkusio#32499 (comment)
  • Loading branch information
geoand committed Apr 8, 2023
1 parent 0100232 commit 0a9f363
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import io.fabric8.kubernetes.client.vertx.VertxHttpClientBuilder;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.file.FileSystemOptions;

public class QuarkusHttpClientFactory implements HttpClient.Factory, Closeable {

Expand Down Expand Up @@ -38,7 +39,8 @@ private Vertx createVertxInstance() {
Vertx vertx;
try {
System.setProperty(DISABLE_DNS_RESOLVER_PROP_NAME, "true");
vertx = Vertx.vertx(new VertxOptions());
vertx = Vertx.vertx(new VertxOptions().setFileSystemOptions(
new FileSystemOptions().setFileCachingEnabled(false).setClassPathResolvingEnabled(false)));
} finally {
// Restore the original value
if (originalValue == null) {
Expand Down

0 comments on commit 0a9f363

Please sign in to comment.