mirror of
https://github.com/kubernetes/client-go.git
synced 2026-07-16 17:14:36 +00:00
enable commentstart check on coordination API group
Signed-off-by: liyuerich <yue.li@daocloud.io> Kubernetes-commit: b93c4b1af246fed0270a1819dbc6e909a3b31d1c
This commit is contained in:
committed by
Kubernetes Publisher
parent
c0f38c0636
commit
9b7b30fa39
@@ -33,6 +33,7 @@ import (
|
||||
// Lease defines a lease concept.
|
||||
type LeaseApplyConfiguration struct {
|
||||
metav1.TypeMetaApplyConfiguration `json:""`
|
||||
// metadata is the standard object metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -44,11 +44,11 @@ type LeaseSpecApplyConfiguration struct {
|
||||
// leaseTransitions is the number of transitions of a lease between
|
||||
// holders.
|
||||
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
||||
// Strategy indicates the strategy for picking the leader for coordinated leader election.
|
||||
// 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 *coordinationv1.CoordinatedLeaseStrategy `json:"strategy,omitempty"`
|
||||
// PreferredHolder signals to a lease holder that the lease has a
|
||||
// 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 *string `json:"preferredHolder,omitempty"`
|
||||
|
||||
@@ -34,6 +34,7 @@ import (
|
||||
// Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
|
||||
type LeaseCandidateApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
// metadata is the standard object metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -28,15 +28,15 @@ import (
|
||||
//
|
||||
// LeaseCandidateSpec is a specification of a Lease.
|
||||
type LeaseCandidateSpecApplyConfiguration struct {
|
||||
// LeaseName is the name of the lease for which this candidate is contending.
|
||||
// leaseName is the name of the lease for which this candidate is contending.
|
||||
// This field is immutable.
|
||||
LeaseName *string `json:"leaseName,omitempty"`
|
||||
// PingTime is the last time that the server has requested the LeaseCandidate
|
||||
// pingTime is the last time that the server has requested the LeaseCandidate
|
||||
// to renew. It is only done during leader election to check if any
|
||||
// LeaseCandidates have become ineligible. When PingTime is updated, the
|
||||
// LeaseCandidate will respond by updating RenewTime.
|
||||
PingTime *v1.MicroTime `json:"pingTime,omitempty"`
|
||||
// RenewTime is the time that the LeaseCandidate was last updated.
|
||||
// renewTime is the time that the LeaseCandidate was last updated.
|
||||
// Any time a Lease needs to do leader election, the PingTime field
|
||||
// is updated to signal to the LeaseCandidate that they should update
|
||||
// the RenewTime.
|
||||
@@ -44,14 +44,14 @@ type LeaseCandidateSpecApplyConfiguration struct {
|
||||
// since the last renew. The PingTime field is updated regularly to prevent
|
||||
// garbage collection for still active LeaseCandidates.
|
||||
RenewTime *v1.MicroTime `json:"renewTime,omitempty"`
|
||||
// BinaryVersion is the binary version. It must be in a semver format without leading `v`.
|
||||
// binaryVersion is the binary version. It must be in a semver format without leading `v`.
|
||||
// This field is required.
|
||||
BinaryVersion *string `json:"binaryVersion,omitempty"`
|
||||
// EmulationVersion is the emulation version. It must be in a semver format without leading `v`.
|
||||
// emulationVersion is the emulation version. It must be in a semver format without leading `v`.
|
||||
// EmulationVersion must be less than or equal to BinaryVersion.
|
||||
// This field is required when strategy is "OldestEmulationVersion"
|
||||
EmulationVersion *string `json:"emulationVersion,omitempty"`
|
||||
// Strategy is the strategy that coordinated leader election will use for picking the leader.
|
||||
// strategy is the strategy that coordinated leader election will use for picking the leader.
|
||||
// If multiple candidates for the same Lease return different strategies, the strategy provided
|
||||
// by the candidate with the latest BinaryVersion will be used. If there is still conflict,
|
||||
// this is a user error and coordinated leader election will not operate the Lease until resolved.
|
||||
|
||||
@@ -33,6 +33,7 @@ import (
|
||||
// Lease defines a lease concept.
|
||||
type LeaseApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
// metadata is the standard object metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -34,6 +34,7 @@ import (
|
||||
// Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
|
||||
type LeaseCandidateApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:""`
|
||||
// metadata is the standard object metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||
// spec contains the specification of the Lease.
|
||||
|
||||
@@ -28,17 +28,17 @@ import (
|
||||
//
|
||||
// LeaseCandidateSpec is a specification of a Lease.
|
||||
type LeaseCandidateSpecApplyConfiguration struct {
|
||||
// LeaseName is the name of the lease for which this candidate is contending.
|
||||
// leaseName is the name of the lease for which this candidate is contending.
|
||||
// The limits on this field are the same as on Lease.name. Multiple lease candidates
|
||||
// may reference the same Lease.name.
|
||||
// This field is immutable.
|
||||
LeaseName *string `json:"leaseName,omitempty"`
|
||||
// PingTime is the last time that the server has requested the LeaseCandidate
|
||||
// pingTime is the last time that the server has requested the LeaseCandidate
|
||||
// to renew. It is only done during leader election to check if any
|
||||
// LeaseCandidates have become ineligible. When PingTime is updated, the
|
||||
// LeaseCandidate will respond by updating RenewTime.
|
||||
PingTime *v1.MicroTime `json:"pingTime,omitempty"`
|
||||
// RenewTime is the time that the LeaseCandidate was last updated.
|
||||
// renewTime is the time that the LeaseCandidate was last updated.
|
||||
// Any time a Lease needs to do leader election, the PingTime field
|
||||
// is updated to signal to the LeaseCandidate that they should update
|
||||
// the RenewTime.
|
||||
@@ -46,14 +46,14 @@ type LeaseCandidateSpecApplyConfiguration struct {
|
||||
// since the last renew. The PingTime field is updated regularly to prevent
|
||||
// garbage collection for still active LeaseCandidates.
|
||||
RenewTime *v1.MicroTime `json:"renewTime,omitempty"`
|
||||
// BinaryVersion is the binary version. It must be in a semver format without leading `v`.
|
||||
// binaryVersion is the binary version. It must be in a semver format without leading `v`.
|
||||
// This field is required.
|
||||
BinaryVersion *string `json:"binaryVersion,omitempty"`
|
||||
// EmulationVersion is the emulation version. It must be in a semver format without leading `v`.
|
||||
// emulationVersion is the emulation version. It must be in a semver format without leading `v`.
|
||||
// EmulationVersion must be less than or equal to BinaryVersion.
|
||||
// This field is required when strategy is "OldestEmulationVersion"
|
||||
EmulationVersion *string `json:"emulationVersion,omitempty"`
|
||||
// Strategy is the strategy that coordinated leader election will use for picking the leader.
|
||||
// strategy is the strategy that coordinated leader election will use for picking the leader.
|
||||
// If multiple candidates for the same Lease return different strategies, the strategy provided
|
||||
// by the candidate with the latest BinaryVersion will be used. If there is still conflict,
|
||||
// this is a user error and coordinated leader election will not operate the Lease until resolved.
|
||||
|
||||
@@ -44,10 +44,10 @@ type LeaseSpecApplyConfiguration struct {
|
||||
// leaseTransitions is the number of transitions of a lease between
|
||||
// holders.
|
||||
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
||||
// Strategy indicates the strategy for picking the leader for coordinated leader election
|
||||
// strategy indicates the strategy for picking the leader for coordinated leader election.
|
||||
// (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
|
||||
Strategy *coordinationv1.CoordinatedLeaseStrategy `json:"strategy,omitempty"`
|
||||
// PreferredHolder signals to a lease holder that the lease has a
|
||||
// preferredHolder signals to a lease holder that the lease has a
|
||||
// more optimal holder and should be given up.
|
||||
PreferredHolder *string `json:"preferredHolder,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user