Class LeaderElectionConfigFactory
java.lang.Object
io.micronaut.kubernetes.client.operator.leaderelection.LeaderElectionConfigFactory
The factory for
LeaderElectionConfig
.- Since:
- 3.3
- Author:
- Pavol Gressa
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.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) Builds theLeaderElectionConfig
from theLeaderElectionConfiguration
.
-
Constructor Details
-
LeaderElectionConfigFactory
public LeaderElectionConfigFactory()
-
-
Method Details
-
leaderElectionConfig
@Singleton public io.kubernetes.client.extended.leaderelection.LeaderElectionConfig leaderElectionConfig(@NonNull @NonNull io.kubernetes.client.extended.leaderelection.Lock lock, @NonNull @NonNull LeaderElectionConfiguration electionConfigProperties, @Nullable @Nullable io.kubernetes.client.openapi.models.V1OwnerReference ownerReference) Builds theLeaderElectionConfig
from theLeaderElectionConfiguration
.- Parameters:
lock
- the lockelectionConfigProperties
- the leader election configurationownerReference
- optional owner reference- Returns:
- the leader election config
-