Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Fabric8LeaderElectionAutoConfiguration {
@Bean
@ConditionalOnClass(InfoContributor.class)
@ConditionalOnEnabledInfoContributor("leader.election")
Fabric8LeaderElectionInfoContributor leaderElectionInfoContributor(String candidateIdentity,
Fabric8LeaderElectionInfoContributor fabric8LeaderElectionInfoContributor(String candidateIdentity,
LeaderElectionConfig leaderElectionConfig, KubernetesClient fabric8KubernetesClient) {
return new Fabric8LeaderElectionInfoContributor(candidateIdentity, leaderElectionConfig,
fabric8KubernetesClient);
Expand All @@ -83,7 +83,7 @@ Fabric8LeaderElectionInitiator fabric8LeaderElectionInitiator(String candidateId
}

@Bean
BooleanSupplier podReadySupplier(KubernetesClient fabric8KubernetesClient, String candidateIdentity,
BooleanSupplier fabric8PodReadySupplier(KubernetesClient fabric8KubernetesClient, String candidateIdentity,
String podNamespace) {
return () -> {
Pod pod = fabric8KubernetesClient.pods().inNamespace(podNamespace).withName(candidateIdentity).get();
Expand All @@ -107,7 +107,7 @@ LeaderElectionConfig fabric8LeaderElectionConfig(LeaderElectionProperties proper

@Bean
@ConditionalOnMissingBean
Lock lock(KubernetesClient fabric8KubernetesClient, LeaderElectionProperties properties, String candidateIdentity) {
Lock fabric8LeaderElectionLock(KubernetesClient fabric8KubernetesClient, LeaderElectionProperties properties, String candidateIdentity) {
boolean leaseSupported = fabric8KubernetesClient.getApiGroups()
.getGroups()
.stream()
Expand Down
Loading