Skip to content

coordination_v1beta1

Lease

class lightkube.models.coordination_v1beta1.Lease(apiVersion=None, kind=None, metadata=None, spec=None)

Lease defines a lease concept.

parameters

  • apiVersion str - (optional) 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
  • kind str - (optional) Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • metadata meta_v1.ObjectMeta - (optional) More info
  • spec LeaseSpec - (optional) Specification of the Lease. More info

LeaseList

class lightkube.models.coordination_v1beta1.LeaseList(items, apiVersion=None, kind=None, metadata=None)

LeaseList is a list of Lease objects.

parameters

  • items Lease - Items is a list of schema objects.
  • apiVersion str - (optional) 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
  • kind str - (optional) Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • metadata meta_v1.ListMeta - (optional) Standard list metadata. More info

LeaseSpec

class lightkube.models.coordination_v1beta1.LeaseSpec(acquireTime=None, holderIdentity=None, leaseDurationSeconds=None, leaseTransitions=None, renewTime=None)

LeaseSpec is a specification of a Lease.

parameters

  • acquireTime meta_v1.MicroTime - (optional) acquireTime is a time when the current lease was acquired.
  • holderIdentity str - (optional) holderIdentity contains the identity of the holder of a current lease.
  • leaseDurationSeconds int - (optional) 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.
  • leaseTransitions int - (optional) leaseTransitions is the number of transitions of a lease between holders.
  • renewTime meta_v1.MicroTime - (optional) renewTime is a time when the current holder of a lease has last updated the lease.