avionix.kube.coordination¶
-
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.LeaseList(metadata, items, api_version=None)¶ - Parameters
metadata (
ListMeta) – Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata # noqaitems (
List[Lease]) – Items is a list of schema objects.api_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, 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.