mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #46052 from davidewatson/spelling
Automatic merge from submit-queue Correct spelling in comment **What this PR does / why we need it**: Corrects two misspelled names in a comment. **Which issue this PR fixes**: N/A **Special notes for your reviewer**: NONE **Release note**: NONE
This commit is contained in:
commit
8d0cce3f91
@ -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