formatting

This commit is contained in:
spencergibb
2021-12-03 15:55:32 -05:00
parent 5e34da205b
commit aee5a47677
2 changed files with 10 additions and 6 deletions

View File

@@ -76,10 +76,12 @@ public class KubernetesClientEventBasedConfigMapChangeDetector extends Configura
super(environment, properties, strategy);
this.propertySourceLocator = propertySourceLocator;
this.coreV1Api = coreV1Api;
// We need to pass an APIClient to the SharedInformerFactory because if we use the default
// constructor it will use the configured default APIClient but that may not contain
// We need to pass an APIClient to the SharedInformerFactory because if we use the
// default
// constructor it will use the configured default APIClient but that may not
// contain
// an APIClient configured within the cluster and does not contain the necessary
// certificate authorities for the cluster. This results in SSL errors.
// certificate authorities for the cluster. This results in SSL errors.
// See https://github.com/spring-cloud/spring-cloud-kubernetes/issues/885
this.factory = new SharedInformerFactory(createApiClientForInformerClient());
this.kubernetesNamespaceProvider = kubernetesNamespaceProvider;

View File

@@ -74,10 +74,12 @@ public class KubernetesClientEventBasedSecretsChangeDetector extends Configurati
KubernetesNamespaceProvider kubernetesNamespaceProvider) {
super(environment, properties, strategy);
this.propertySourceLocator = propertySourceLocator;
// We need to pass an APIClient to the SharedInformerFactory because if we use the default
// constructor it will use the configured default APIClient but that may not contain
// We need to pass an APIClient to the SharedInformerFactory because if we use the
// default
// constructor it will use the configured default APIClient but that may not
// contain
// an APIClient configured within the cluster and does not contain the necessary
// certificate authorities for the cluster. This results in SSL errors.
// certificate authorities for the cluster. This results in SSL errors.
// See https://github.com/spring-cloud/spring-cloud-kubernetes/issues/885
this.factory = new SharedInformerFactory(createApiClientForInformerClient());
this.coreV1Api = coreV1Api;