avionix.kube.coordination¶
Contains Lease class
-
class
avionix.kube.coordination.Lease(metadata, spec, api_version=None)¶ - Parameters
metadata (
ObjectMeta) – More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata # noqaspec (
LeaseSpec) – Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status # noqaapi_version (
Optional[str]) – APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa
-
class
avionix.kube.coordination.LeaseSpec(acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None)¶ - Parameters
acquire_time (
Optional[time]) – acquireTime is a time when the current lease was acquired.holder_identity (
Optional[str]) – holderIdentity contains the identity of the holder of a current lease.lease_duration_seconds (
Optional[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 (
Optional[int]) – leaseTransitions is the number of transitions of a lease between holders.renew_time (
Optional[time]) – renewTime is a time when the current holder of a lease has last updated the lease.