Class ResourceLockFactory

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

@Factory public class ResourceLockFactory extends Object
The factory that creates the official Kubernetes SDK provided Lock implementations.
Since:
3.3
Author:
Pavol Gressa
  • Constructor Details

  • Method Details

    • configMapLock

      @Requires(property="kubernetes.client.operator.leader-election.lock.resource-kind", value="configmap") @Primary @Singleton public io.kubernetes.client.extended.leaderelection.resourcelock.ConfigMapLock configMapLock()
      Creates the ConfigMapLock.
      Returns:
      config map lock
    • endpointsLock

      @Requires(property="kubernetes.client.operator.leader-election.lock.resource-kind", value="endpoints") @Primary @Singleton public io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock endpointsLock()
      Creates the EndpointsLock.
      Returns:
      the endpoints lock
    • leaseLock

      @Requires(property="kubernetes.client.operator.leader-election.lock.resource-kind", value="lease", defaultValue="lease") @Secondary @Singleton public io.kubernetes.client.extended.leaderelection.resourcelock.LeaseLock leaseLock()
      Creates the LeaseLock.
      Returns:
      the lease lock