@Factory
@Internal
public class LeaderElectionConfigFactory
extends java.lang.Object
LeaderElectionConfig.| Constructor and Description |
|---|
LeaderElectionConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
io.kubernetes.client.extended.leaderelection.LeaderElectionConfig |
leaderElectionConfig(io.kubernetes.client.extended.leaderelection.Lock lock,
LeaderElectionConfiguration electionConfigProperties,
io.kubernetes.client.openapi.models.V1OwnerReference ownerReference)
Builds the
LeaderElectionConfig from the LeaderElectionConfiguration. |
@Singleton
public io.kubernetes.client.extended.leaderelection.LeaderElectionConfig leaderElectionConfig(@NonNull
io.kubernetes.client.extended.leaderelection.Lock lock,
@NonNull
LeaderElectionConfiguration electionConfigProperties,
@Nullable
io.kubernetes.client.openapi.models.V1OwnerReference ownerReference)
LeaderElectionConfig from the LeaderElectionConfiguration.lock - the lockelectionConfigProperties - the leader election configurationownerReference - optional owner reference