struct

Kubernetes::LeaseSpec

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

LeaseSpec is a specification of a Lease.

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

acquire_time

acquireTime is a time when the current lease was acquired.

Source
acquire_time=(acquire_time : MicroTime | Nil)

acquireTime is a time when the current lease was acquired.

Source
holder_identity

holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.

Source
holder_identity=(holder_identity : String | Nil)

holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.

Source
lease_duration_seconds

leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.

Source
lease_duration_seconds=(lease_duration_seconds : Int32 | Nil)

leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.

Source
lease_transitions

leaseTransitions is the number of transitions of a lease between holders.

Source
lease_transitions=(lease_transitions : Int32 | Nil)

leaseTransitions is the number of transitions of a lease between holders.

Source
preferred_holder

PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.

Source
preferred_holder=(preferred_holder : String | Nil)

PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.

Source
renew_time

renewTime is a time when the current holder of a lease has last updated the lease.

Source
renew_time=(renew_time : MicroTime | Nil)

renewTime is a time when the current holder of a lease has last updated the lease.

Source
strategy

Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.

Source
strategy=(strategy : String | Nil)

Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source