Class LeaderElectionConfigFactory

java.lang.Object
io.micronaut.kubernetes.client.operator.leaderelection.LeaderElectionConfigFactory

@Factory @Internal public class LeaderElectionConfigFactory extends Object
The factory for LeaderElectionConfig.
Since:
3.3
Author:
Pavol Gressa
  • 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 the LeaderElectionConfig from the LeaderElectionConfiguration.
      Parameters:
      lock - the lock
      electionConfigProperties - the leader election configuration
      ownerReference - optional owner reference
      Returns:
      the leader election config