From 6e5bec64def574e626b1c32adbd94b603f68a5a1 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 2 Feb 2022 13:44:34 +0200 Subject: [PATCH 1/2] Remove unused field --- .../io/fabric8/kubernetes/client/dsl/base/OperationSupport.java | 1 - 1 file changed, 1 deletion(-) diff --git a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java index 964087e93d2..9d34fedb95d 100644 --- a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java +++ b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java @@ -61,7 +61,6 @@ public class OperationSupport { public static final String JSON_MERGE_PATCH = "application/merge-patch+json"; protected static final ObjectMapper JSON_MAPPER = Serialization.jsonMapper(); - protected static final ObjectMapper YAML_MAPPER = Serialization.yamlMapper(); private static final Logger LOG = LoggerFactory.getLogger(OperationSupport.class); private static final String CLIENT_STATUS_FLAG = "CLIENT_STATUS_FLAG"; private static final int maxRetryIntervalExponent = 5; From a775e3e242dabf16dacdbe5fd1fc7a94a596ba97 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 2 Feb 2022 13:58:30 +0200 Subject: [PATCH 2/2] Prevent double auto-configuration of Config object --- .../src/main/java/io/fabric8/kubernetes/client/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/Config.java b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/Config.java index df98eb53b51..ad441a06b3e 100644 --- a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/Config.java +++ b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/Config.java @@ -269,7 +269,7 @@ public static Config empty() { * @return Config object */ public static Config autoConfigure(String context) { - Config config = new Config(); + Config config = new Config(false); return autoConfigure(config, context); }