mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #74018 from JoeWrightss/patch-1
remove redundant words 'the' in comment
This commit is contained in:
commit
a52e08a2df
@ -131,8 +131,8 @@ func decodeVersionedSet(encodedVersionedSet *metav1.ManagedFieldsEntry) (version
|
|||||||
return versionedSet, nil
|
return versionedSet, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// encodeManagedFields converts ManagedFields from the the format used by
|
// encodeManagedFields converts ManagedFields from the format used by
|
||||||
// sigs.k8s.io/structured-merge-diff to the the wire format (api format)
|
// sigs.k8s.io/structured-merge-diff to the wire format (api format)
|
||||||
func encodeManagedFields(managedFields fieldpath.ManagedFields) (encodedManagedFields []metav1.ManagedFieldsEntry, err error) {
|
func encodeManagedFields(managedFields fieldpath.ManagedFields) (encodedManagedFields []metav1.ManagedFieldsEntry, err error) {
|
||||||
// Sort the keys so a predictable order will be used.
|
// Sort the keys so a predictable order will be used.
|
||||||
managers := []string{}
|
managers := []string{}
|
||||||
|
@ -76,7 +76,7 @@ func TestLeaderElectionHealthChecker(t *testing.T) {
|
|||||||
elector: nil,
|
elector: nil,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "call check when the the lease is far expired",
|
description: "call check when the lease is far expired",
|
||||||
expected: fmt.Errorf("failed election to renew leadership on lease %s", "foo"),
|
expected: fmt.Errorf("failed election to renew leadership on lease %s", "foo"),
|
||||||
adaptorTimeout: time.Second * 20,
|
adaptorTimeout: time.Second * 20,
|
||||||
elector: &LeaderElector{
|
elector: &LeaderElector{
|
||||||
@ -93,7 +93,7 @@ func TestLeaderElectionHealthChecker(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "call check when the the lease is far expired but held by another server",
|
description: "call check when the lease is far expired but held by another server",
|
||||||
expected: nil,
|
expected: nil,
|
||||||
adaptorTimeout: time.Second * 20,
|
adaptorTimeout: time.Second * 20,
|
||||||
elector: &LeaderElector{
|
elector: &LeaderElector{
|
||||||
@ -110,7 +110,7 @@ func TestLeaderElectionHealthChecker(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "call check when the the lease is not expired",
|
description: "call check when the lease is not expired",
|
||||||
expected: nil,
|
expected: nil,
|
||||||
adaptorTimeout: time.Second * 20,
|
adaptorTimeout: time.Second * 20,
|
||||||
elector: &LeaderElector{
|
elector: &LeaderElector{
|
||||||
@ -127,7 +127,7 @@ func TestLeaderElectionHealthChecker(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "call check when the the lease is expired but inside the timeout",
|
description: "call check when the lease is expired but inside the timeout",
|
||||||
expected: nil,
|
expected: nil,
|
||||||
adaptorTimeout: time.Second * 20,
|
adaptorTimeout: time.Second * 20,
|
||||||
elector: &LeaderElector{
|
elector: &LeaderElector{
|
||||||
|
Loading…
Reference in New Issue
Block a user