-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align fabric8 k8s discovery clients part 5 #1506
Align fabric8 k8s discovery clients part 5 #1506
Conversation
…fabric8-k8s-discovery-clients-part-2
…fabric8-k8s-discovery-clients-part-4
…fabric8-k8s-discovery-clients-part-5
@@ -57,7 +56,7 @@ class KubernetesClientConfigServerBootstrapper extends KubernetesConfigServerBoo | |||
|
|||
@Override | |||
public void initialize(BootstrapRegistry registry) { | |||
if (!ClassUtils.isPresent("org.springframework.cloud.config.client.ConfigServerInstanceProvider", null)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method hasConfigServerInstanceProvider
is already present in the base class and it's already doing the same exact check, so just replace with that one
@@ -96,7 +95,7 @@ public List<ServiceInstance> apply(String serviceId, Binder binder, BindHandler | |||
.getInstances(serviceId); | |||
} | |||
|
|||
protected KubernetesConfigServerInstanceProvider getInstanceProvider( | |||
private KubernetesConfigServerInstanceProvider getInstanceProvider( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class is final
, so protected
can be replaced with private
@@ -116,12 +115,12 @@ protected KubernetesConfigServerInstanceProvider getInstanceProvider( | |||
|
|||
String namespace = getInformerNamespace(kubernetesNamespaceProvider, discoveryProperties); | |||
SharedInformerFactory sharedInformerFactory = new SharedInformerFactory(apiClient); | |||
final GenericKubernetesApi<V1Service, V1ServiceList> servicesApi = new GenericKubernetesApi<>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing changed here, just dropped final
/** | ||
* Prefix of the properties. | ||
*/ | ||
public static final String PREFIX = "spring.cloud.kubernetes.discovery"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefix here so that it can be re-used
@ryanjbaxter one more in the same direction... thank you. |
No description provided.