Package org.springframework.cloud.kubernetes.commons.leader.election
package org.springframework.cloud.kubernetes.commons.leader.election
-
ClassDescriptionThis is taken from fabric8 with some changes (we need it, so it could be placed in the common package).Provides a more succinct conditional for:
spring.cloud.kubernetes.leader.election.enabled.common leader election callbacks that are supposed to be used in both fabric8 and k8s-native clients.waitForPodReady: should we wait for the readiness of the pod, before we even trigger the leader election process. publishEvents: should we publish events (ApplicationEvent) when the state of leaders changes. leaseDuration: TTL of the lease.