avionix.kube.coordination

class avionix.kube.coordination.Lease(metadata, spec, api_version=None)
Parameters
class avionix.kube.coordination.LeaseList(metadata, items, api_version=None)
Parameters
class avionix.kube.coordination.LeaseSpec(acquire_time, holder_identity, lease_duration_seconds, lease_transitions, renew_time)
Parameters
  • acquire_time (time) – acquireTime is a time when the current lease was acquired.

  • holder_identity (str) – holderIdentity contains the identity of the holder of a current lease.

  • lease_duration_seconds (int) – leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.

  • lease_transitions (int) – leaseTransitions is the number of transitions of a lease between holders.

  • renew_time (time) – renewTime is a time when the current holder of a lease has last updated the lease.