From 3ef495ffdc1fd27f3999a655be354c6a09047b1f Mon Sep 17 00:00:00 2001 From: erabii Date: Fri, 17 May 2024 21:24:12 +0300 Subject: [PATCH] Fix 1654 (#1655) --- .../discovery/KubernetesClientConfigServerBootstrapper.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesClientConfigServerBootstrapper.java b/spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesClientConfigServerBootstrapper.java index 6976d08159..43db30536b 100644 --- a/spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesClientConfigServerBootstrapper.java +++ b/spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesClientConfigServerBootstrapper.java @@ -64,12 +64,6 @@ public void initialize(BootstrapRegistry registry) { return createKubernetesDiscoveryProperties(context); }); - registry.registerIfAbsent(KubernetesClientProperties.class, context -> { - if (!getDiscoveryEnabled(context)) { - return null; - } - return createKubernetesClientProperties(context); - }); registry.registerIfAbsent(ConfigServerInstanceProvider.Function.class, context -> { if (!getDiscoveryEnabled(context)) { return (id) -> Collections.emptyList();