forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eventing change: knative/eventing#3405 Upstream PR: kubernetes/kubernetes#88192 PKG issue: knative/pkg#1199
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/vendor/k8s.io/client-go/tools/leaderelection/leaderelection.go 2020-07-02 11:15:19.000000000 -0400 | ||
+++ b/vendor/k8s.io/client-go/tools/leaderelection/leaderelection.go 2020-07-06 15:51:35.000000000 -0400 | ||
@@ -301,7 +301,8 @@ | ||
return true | ||
} | ||
leaderElectionRecord := rl.LeaderElectionRecord{ | ||
- LeaderTransitions: le.observedRecord.LeaderTransitions, | ||
+ LeaderTransitions: le.observedRecord.LeaderTransitions, | ||
+ LeaseDurationSeconds: le.observedRecord.LeaseDurationSeconds, | ||
} | ||
if err := le.config.Lock.Update(leaderElectionRecord); err != nil { | ||
klog.Errorf("Failed to release lock: %v", err) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
vendor/k8s.io/client-go/tools/leaderelection/leaderelection.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.