Skip to content

Commit

Permalink
Merge pull request #750 from pohly/automated-cherry-pick-of-#690-orig…
Browse files Browse the repository at this point in the history
…in-release-3.1

Automated cherry pick of #690: add unique identity to the leaderrelection leader.
  • Loading branch information
k8s-ci-robot authored Jun 14, 2022
2 parents b4b5033 + 093a34e commit d20549e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/csi-provisioner/csi-provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ func main() {
le.WithLeaseDuration(*leaderElectionLeaseDuration)
le.WithRenewDeadline(*leaderElectionRenewDeadline)
le.WithRetryPeriod(*leaderElectionRetryPeriod)
le.WithIdentity(identity)

if err := le.Run(); err != nil {
klog.Fatalf("failed to initialize leader election: %v", err)
Expand Down

0 comments on commit d20549e

Please sign in to comment.