mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Correct spelling in comment.
This commit is contained in:
parent
5f3f170919
commit
204fb62d49
@ -71,7 +71,7 @@ const (
|
|||||||
DefaultRetryPeriod = 2 * time.Second
|
DefaultRetryPeriod = 2 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewLeadereElector creates a LeaderElector from a LeaderElecitionConfig
|
// NewLeaderElector creates a LeaderElector from a LeaderElectionConfig
|
||||||
func NewLeaderElector(lec LeaderElectionConfig) (*LeaderElector, error) {
|
func NewLeaderElector(lec LeaderElectionConfig) (*LeaderElector, error) {
|
||||||
if lec.LeaseDuration <= lec.RenewDeadline {
|
if lec.LeaseDuration <= lec.RenewDeadline {
|
||||||
return nil, fmt.Errorf("leaseDuration must be greater than renewDeadline")
|
return nil, fmt.Errorf("leaseDuration must be greater than renewDeadline")
|
||||||
|
Loading…
Reference in New Issue
Block a user