diff --git a/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/KubernetesConfigServerBootstrapper.java b/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/KubernetesConfigServerBootstrapper.java index c55703ec0e..972c00197b 100644 --- a/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/KubernetesConfigServerBootstrapper.java +++ b/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/KubernetesConfigServerBootstrapper.java @@ -38,24 +38,12 @@ public static boolean hasConfigServerInstanceProvider() { return !ClassUtils.isPresent("org.springframework.cloud.config.client.ConfigServerInstanceProvider", null); } - public static KubernetesDiscoveryProperties createKubernetesDiscoveryProperties(Binder binder, - BindHandler bindHandler) { - return binder - .bind(KubernetesDiscoveryProperties.PREFIX, Bindable.of(KubernetesDiscoveryProperties.class), bindHandler) - .orElseGet(() -> KubernetesDiscoveryProperties.DEFAULT); - } - public static KubernetesDiscoveryProperties createKubernetesDiscoveryProperties(BootstrapContext bootstrapContext) { PropertyResolver propertyResolver = getPropertyResolver(bootstrapContext); return propertyResolver.resolveConfigurationProperties(KubernetesDiscoveryProperties.PREFIX, KubernetesDiscoveryProperties.class, () -> KubernetesDiscoveryProperties.DEFAULT); } - public static KubernetesClientProperties createKubernetesClientProperties(Binder binder, BindHandler bindHandler) { - return binder.bindOrCreate(KubernetesClientProperties.PREFIX, Bindable.of(KubernetesClientProperties.class)) - .withNamespace(new KubernetesNamespaceProvider(binder, bindHandler).getNamespace()); - } - public static KubernetesClientProperties createKubernetesClientProperties(BootstrapContext bootstrapContext) { PropertyResolver propertyResolver = getPropertyResolver(bootstrapContext); return getPropertyResolver(bootstrapContext)