struct
Kubernetes::LeaseSpec
- Kubernetes::LeaseSpec
- Struct
- Value
- Object
Overview
LeaseSpec is a specification of a Lease.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_coordination_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#acquire_time : MicroTime | Nil
acquireTime is a time when the current lease was acquired.
-
#acquire_time=(acquire_time : MicroTime | Nil)
acquireTime is a time when the current lease was acquired.
-
#holder_identity : String | Nil
holderIdentity contains the identity of the holder of a current lease.
-
#holder_identity=(holder_identity : String | Nil)
holderIdentity contains the identity of the holder of a current lease.
-
#lease_duration_seconds : Int32 | Nil
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.
-
#lease_duration_seconds=(lease_duration_seconds : Int32 | Nil)
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it.
-
#lease_transitions : Int32 | Nil
leaseTransitions is the number of transitions of a lease between holders.
-
#lease_transitions=(lease_transitions : Int32 | Nil)
leaseTransitions is the number of transitions of a lease between holders.
-
#preferred_holder : String | Nil
PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up.
-
#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.
-
#renew_time : MicroTime | Nil
renewTime is a time when the current holder of a lease has last updated the lease.
-
#renew_time=(renew_time : MicroTime | Nil)
renewTime is a time when the current holder of a lease has last updated the lease.
-
#strategy : String | Nil
Strategy indicates the strategy for picking the leader for coordinated leader election.
-
#strategy=(strategy : String | Nil)
Strategy indicates the strategy for picking the leader for coordinated leader election.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
acquireTime is a time when the current lease was acquired.
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.
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.
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.
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.
leaseTransitions is the number of transitions of a lease between holders.
leaseTransitions is the number of transitions of a lease between holders.
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.
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.
renewTime is a time when the current holder of a lease has last updated the lease.
renewTime is a time when the current holder of a lease has last updated the lease.
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.
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.